Returns an array of the dictionary’s keys, in the order they would be in if the dictionary were sorted by its values.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
A selector that specifies the method to use to compare the values in the dictionary.
comparatormethod should return
NSOrderedif the dictionary value is smaller than the argument,
NSOrderedif the dictionary value is larger than the argument, and
NSOrderedif they are equal.
An array of the dictionary’s keys, in the order they would be in if the dictionary were sorted by its values.
Pairs of dictionary values are compared using the comparison method specified by
comparator message is sent to one of the values and has as its single argument the other value from the dictionary.