mikeash/MACollectionUtilities — Issue #3: Add SORTED macro
Author: mikeash
Created: 2011-10-12 14:41:33+00:00
State: open

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.