///**
// 数组排序
//
// @return <#return value description#>
// */
- (NSMutableArray *)orderBy:(NSArray *)arr {
NSArray *sorte = [arr sortedArrayUsingComparator:
^(ECGDiagnosisReportModel *obj1, ECGDiagnosisReportModel* obj2){
if(obj1.send_Time > obj2.send_Time) {
return(NSComparisonResult)NSOrderedDescending;
}else {
return(NSComparisonResult)NSOrderedAscending;
}
}];
NSMutableArray *orderArray = [[NSMutableArray alloc] initWithArray:sorte];
return orderArray;
}
// 数组排序
//
// @return <#return value description#>
// */
- (NSMutableArray *)orderBy:(NSArray *)arr {
NSArray *sorte = [arr sortedArrayUsingComparator:
^(ECGDiagnosisReportModel *obj1, ECGDiagnosisReportModel* obj2){
if(obj1.send_Time > obj2.send_Time) {
return(NSComparisonResult)NSOrderedDescending;
}else {
return(NSComparisonResult)NSOrderedAscending;
}
}];
NSMutableArray *orderArray = [[NSMutableArray alloc] initWithArray:sorte];
return orderArray;
}