对NSSet进行排序:
NSSortDescriptor *descriptor = [[NSSortDescriptor alloc] initWithKey:@"name" ascending:YES];
[[testSet.questions allObjects] sortedArrayUsingDescriptors:descriptor]; // warning
然后系统警告:
Incompatible pointer types sending 'NSSortDescriptor *__strong' to parameter of type 'NSArray *