NSArray Sort 排序

打算实现tableview的生序降序排序
```js
NSArray * rs= [oneArray sortedArrayUsingComparator:NSComparisonResult(RFIConModel * obj1, RFIConModel * obj2) {

    NSComparisonResult result=NSOrderedSame ;
float obj1float=[obj1.imageWidth floatValue];
float obj2float=[obj2.imageWidth floatValue]; if (obj1float>obj2float) {
result=NSOrderedAscending;
} else if (obj1float==obj2float) {
result= NSOrderedSame;
} else {
result= NSOrderedDescending;
} if (flag) {
return result; }
else
{
return [RFIConModel comResultRevert:result]; }
return result;
```
上一篇:2013亚洲区域赛长沙站 ZOJ 3732 Graph Reconstruction


下一篇:cf293E Close Vertices(树分治+BIT)