MACollectionUtilities icon indicating copy to clipboard operation
MACollectionUtilities copied to clipboard

Add SORTED macro

Open mikeash opened this issue 14 years ago • 0 comments

A SORTED macro would reduce the verbosity of doing custom collection sorts:

a = SORTED(b, [a compare: b options: NSCaseInsensitiveSearch | NSNumericSearch]);

As a bonus, it could be made to work on sets/dictionaries, returning a sorted array of their contents.

mikeash avatar Oct 12 '11 14:10 mikeash