gradum-kit - v0.1.0
    Preparing search index...

    Function alphabeticalSorting

    • Function

      alphabeticalSorting

      Parameters

      • a: string | number | symbol

        The first key.

      • b: string | number | symbol

        The second key.

      Returns number

      A negative number, zero, or a positive number, as sort expects.

      Comparator for Array.prototype.sort that orders keys naturally: strings by locale, numbers by value, and symbols by their description. Pairs of mixed types are left in place.