//排序
for (QuestionListModel *model in arr) {
model.RankQuestionNum = [model.questionNum intValue];
}
NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"RankQuestionNum" ascending:YES];
NSArray *sortDescriptors = [[NSArray alloc] initWithObjects:&sortDescriptor count:1];
[arr sortUsingDescriptors:sortDescriptors];
注意:RankQuestionNum所代表的属性记得是整形 或者是浮点型(可比较大小的类型)