标签:ui 字符串排序
排序 只适用于NSString
NSMutableArray *ary = [@[] mutableCopy];
int i = 10;
while (i >= 0) {
i --;
[ary addObject:[NSString stringWithFormat:@"%d", arc4random()%20]];
}
[ary sortUsingComparator:^NSComparisonResult(id obj1, id obj2) {
return [obj1 localizedStandardCompare:obj2];
}];
标签:ui 字符串排序
原文地址:http://9864900.blog.51cto.com/9854900/1652072