Function sortKeys

  • Sorts a list of keys. If the keys are actually KeyLabel objects, they are sorted by key. Otherwise, they are naturally sorted. Returns a new array with the sorted keys.

    Type Parameters

    Parameters

    • keys: Iterable<T>

    Returns T[]