I have a dico NSDictionary containing things like: { 123 = , 125 = , ... 73 = }
123, 125, .., 73 are NSString.
I'd like to have an NSArray containing the objects ordered by their id:
[ <MyObject:73>, <MyObject:123>, ..., <MyObject:125> ]
What is the most efficient way to do so ?
I used [[dico allKeys] sortedArrayUsingSelector:@selector(compare:)]
to key a list of ordered keys but as the keys are NSString they are not ordered the right way (I could end up with [ 42, 46, 5, 56. ...].