Sportica   Sportica

ios 排序

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

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

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

posted @ 2013-05-07 14:56  qingjoin  阅读(148)  评论(0编辑  收藏  举报
  Sportica