Try this,
NSArray *keys = [myDictionary allKeys];
keys = [keys sortedArrayUsingComparator:^(id a, id b) {
return [a compare:b options:NSNumericSearch];
}];
NSLog(@"%@",keys);
Now fetch values based on the key sorted.
EDIT
To sort them in alphabetical order try this,
NSArray *keys = [myDictionary allKeys];
keys = [[keys mutableCopy] sortUsingSelector:@selector(localizedCaseInsensitiveCompare:)];
NSLog(@"%@",keys);
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…