I\'m developing an iOS 4 application with latest SDK and XCode 4.2.
I have a NSMutableDictionary where keys are NSDate and
NSMutableDictionary
NSDate
Try this code:
NSArray *sortedArray = [[myDict allKeys] sortedArrayUsingSelector:@selector(compare:)];
But note that you cannot sort a dictionary, as it is based on key-value lookups, not indexed lookups.