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.
A
SORTEDmacro would reduce the verbosity of doing custom collection sorts:As a bonus, it could be made to work on sets/dictionaries, returning a sorted array of their contents.