ios 排序

  NSArray *_firstArray = [NSArrayarrayWithObjects:@"ccccc",@"bbbbb",@"ddddd",@"aaaaa",nil];

    NSArray *_sortedArray= [_firstArray sortedArrayUsingSelector:@selector(compare:)];

NSLog(@"未排序:%@",_firstArray);
  NSLog(@"排行后:%@",_sortedArray);

原文地址:https://www.cnblogs.com/qingjoin/p/3064782.html