// 排序key, 某个对象的属性名称,升降序, YES-升序, NO-降序
NSSortDescriptor *sort = [NSSortDescriptor sortDescriptorWithKey:@"type" ascending:NO];
// 排序结果
NSArray * Arr = [list sortedArrayUsingDescriptors:[NSArray arrayWithObject:sort]];
来源:oschina
链接:https://my.oschina.net/wayzhu/blog/3210027