NSSortDescriptor *sortDescriptor;
            
            sortDescriptor = [[NSSortDescriptor alloc]initWithKey:@"dtDateReal" ascending:NO];
            
            NSArray *sortDescriptors = [NSArray arrayWithObject:sortDescriptor];
            
            NSArray *sortedArray;
            
            sortedArray = [self.courseLists sortedArrayUsingDescriptors:sortDescriptors];
            
            self.courseLists = sortedArray;

参考网址http://segmentfault.com/q/1010000000120607

posted on 2015-08-28 16:41  火星的蝈蝈  阅读(410)  评论(0编辑  收藏  举报