请帮助我,我想对 NSMutableArray 进行排序,是的,我可以通过
NSSortDescriptor *sortPoint = [[NSSortDescriptor alloc] initWithKey:@"point" ascending:YES];
[hightScore sortUsingDescriptors:[NSArray arrayWithObject:sortPoint]];
但在 NSMuatableArray(hightScore) 中,我有 2 个像这样的 NSMutableDictionary
[item setObject:@"player_name" forKey:@"name"];
[item setObject:@"100" forKey:@"point"];
当我按关键字“point”排序时,它给我这样的 100 > 20 > 30 > 50 而不是 20 > 30 > 50 > 100
有任何想法。