How can I sort an NSArray containing NSDictionaries?

前端 未结 3 1787
囚心锁ツ
囚心锁ツ 2020-11-27 07:49

I have an NSArray which contains NSDictionary objects. Each of these NSDictionary objects contains an ORDER key.

3条回答
  •  旧巷少年郎
    2020-11-27 08:50

    Read the Sorting with Sort Descriptors section of Apple's Collections Programming Topics.

    The example in this section covers sorting an array of dictionary objects by their keys.

提交回复
热议问题