数组不在设备上排序 - 在模拟器中工作

array not sorting on device - works in Simulator

我一直在尝试解决这个问题,但到目前为止我一直无法解决...在我的设备中我的数组未按顺序显示,而在模拟器上它是...

在这些行中,我对视图进行排序/分配/重新加载。

self.appDelegate.listaEventos = [tempArray sortedArrayUsingComparator:^NSComparisonResult(id a, id b) {
    NSDate *first = ((EventoModelo*)a).fecha ;
    NSDate *second = ((EventoModelo*)b).fecha;
    NSComparisonResult result =  [first compare:second];
    return result;
}];
dispatch_sync(dispatch_get_main_queue(), ^{
    [self.tableView reloadData];
});

关于我可以做什么的任何提示?设备是 运行 iOS 8.3,我项目的部署目标是 7.0.

问题出在我的 iOS 设备的语言环境中,模拟器使用的是不同的语言环境...其中一个与生成 JSON 时使用的语言环境相同在阅读的地方,另一个不是 - 导致日期为 NULL,因此无法正确排序...