Skip to content

Add SORTED macro #3

@mikeash

Description

@mikeash

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions