@interface testModel : NSObject
//排序用的 scortId
@property (nonatomic, assign) NSInteger scortId;
@end
self.dataArray = [testModel mj_objectArrayWithKeyValuesArray:response[@"data"]];
// 排序key, 某个对象的属性名称,是否升序, YES-升序, NO-降序
NSSortDescriptor *tempDes = [NSSortDescriptor sortDescriptorWithKey:@"state" ascending:YES];
// 排序结果
self.tempArr = [self.dataArray sortedArrayUsingDescriptors:@[tempDes]];