NSDictionary排序算法自定义
NSDictionary sort algorithm custom
我正在使用 NSDictionary
和排序方法 keysSortedByValueUsingSelector
。可以用 quicksort
或 mergesort
?
替换此排序算法
谢谢
您显然可以调用 [myDictionary allKeys] 并使用您喜欢的任何方法对该数组进行排序。这肯定比 Apple 做的要慢。
我正在使用 NSDictionary
和排序方法 keysSortedByValueUsingSelector
。可以用 quicksort
或 mergesort
?
谢谢
您显然可以调用 [myDictionary allKeys] 并使用您喜欢的任何方法对该数组进行排序。这肯定比 Apple 做的要慢。