I have a Dictionary
AlphaSite
BetaSite
GammaSite
I saw how can I sort NSMutableDictionary with keys value? but didnt help me much
dictionaryOfWebsites = [[NSMutableDictionary alloc] init];
[dictionaryOfWebsites setObject:@"http://www.site1.com" forKey:@"AlphaSite1"];
[dictionaryOfWebsites setObject:@"http://www.site2.com" forKey:@"GammaSite2"];
[dictionaryOfWebsites setObject:@"http://www.site3.com" forKey:@"ZetaSite3"];
[dictionaryOfWebsites setObject:@"http://www.site4.com" forKey:@"BetaSite4"];
I want to sort the Dictionary so my results are in alphabetical order (by keys)