[oneArray sortUsingComparator:^NSComparisonResult(id obj1, id obj2) {
if ([obj1 integerValue]>[obj2 integerValue]) {
return NSOrderedDescending;
}
else if ([obj1 integerValue]>[obj2 integerValue])
{
return NSOrderedAscending;
}
return NSOrderedSame;
}];
网友评论