代码中是根据“create_time_” 进行排序 ascending:决定的是升序还是降序排序
NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc]initWithKey:@"create_time_" ascending:Yes]; [dataArray sortUsingDescriptors:[NSArray arrayWithObject:sortDescriptor]];
时间: 2024-10-13 15:56:07