• A 3-way string comparison function.

    Parameters

    • a: string

      The first string of interest.

    • b: string

      The second string of interest.

    Returns number

    -1 if a < b, else 1 if a > b, else 0.