摘要:
NSArray *_firstArray = [NSArrayarrayWithObjects:@"ccccc",@"bbbbb",@"ddddd",@"aaaaa",nil]; NSArray *_sortedArray= [_firstArray sortedArrayUsingSelector:@selector(compare:)];NSLog(@"未排序:%@",_firstArray); NSLog(@"排行后:%@",_sortedArray); 阅读全文