please help me I want to sort NSMutableArray and yes I can do it with
NSSortDescriptor *sortPoint = [[NSSortDescriptor alloc] initWithKey:@"point" ascending:YES]; [hightScore sortUsingDescriptors:[NSArray arrayWithObject:sortPoint]];
but in NSMuatableArray (hightScore) I have 2 NSMutableDictionary, like this
[item setObject:@"player_name" forKey:@"name"]; [item setObject:@"100" forKey:@"point"];
and when I sort by the keyword "dot", this is a string, I like it 100> 20> 30> 50 instead it should be 20> 30> 50> 100
have any idea.
source share