NSArray *AllData=[WeatherNewModel objectArrayWithKeyValuesArray:jsonObject];
NSSortDescriptor *priceDescriptor = [NSSortDescriptor
sortDescriptorWithKey:@"signalOrder"
ascending:YES
selector:@selector(compare:)];
NSSortDescriptor *modelDescriptor = [NSSortDescriptor
sortDescriptorWithKey:@"paramCode"
ascending:YES
selector:@selector(caseInsensitiveCompare:)];
NSArray *descriptors = @[priceDescriptor, modelDescriptor];
NSArray *sortArray=[AllData sortedArrayUsingDescriptors:descriptors];
根据Model里某个参数,针对数据进行升序降序排序
如果待比较的属性是字符串(NSString)类型, 可使用其默认的方法: localizedStandardCompare: