数组里面字典按字段升序或者降序

NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"country" ascending:YES]; 
 [userArray sortUsingDescriptors:[NSArray arrayWithObject:sortDescriptor]]; 

posted @ 2015-08-10 11:19  Milo_D  阅读(288)  评论(0)    收藏  举报