I have an NSMutableDictionary with integer values, and I\'d like to get an array of the keys, sorted ascending by their respective values. For example, with thi
NSMutableDictionary
The simplest solution:
[dictionary keysSortedByValueUsingSelector:@selector(compare:)]