排序数组的多个键

时间:2010-09-24 10:35:39

标签: iphone

我有NSMutableArray,其中所有对象都在NSMutableDictionary中我想在NSMutableDictionary上对这个数组进行排序,其中两个键是country,另一个是name。

任何人都可以帮我使用NSSort类使用多个键对数组进行排序。

先谢谢

1 个答案:

答案 0 :(得分:1)

我不知道你在说什么,但我想你想要的东西就像我刚才回答的问题:

NSDictionary split into two arrays (objects and keys) and then sorted both by the objects array (or a similar solution)

这有帮助吗?我还没有测试过这个答案,但这似乎很合乎逻辑。

相关问题