标签:
NSDictionary *dic=@{@"1-1":@"02",
@"1-2":@"33",
@"1-3":@"44",
@"1-4":@"60"};
NSArray *arr=[dic allValues];
arr=[arr sortedArrayUsingComparator:^NSComparisonResult(id obj1, id obj2) { return [obj1 compare:obj2]; }];
for (id str in arr){
NSLog(@"%@",str);
}
标签:
原文地址:http://www.cnblogs.com/hz-1521049517/p/5113460.html