我有一本字典
AlphaSite
BetaSite
GammaSite
我看到了如何使用键值对 NSMutableDictionary 进行排序?但对我帮助不大
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"];
我想对字典进行排序,以便我的结果按字母顺序(按键)