Function defaultComparer

Compares numbers by numeric value, otherwise uses the default logic of string comparison.

Is an ascending sort: b, a, c -> a, b, c 10, 5, 100 -> 5, 10, 100

comparerInverse Inverted order

  • Parameters

    • x: any
    • y: any

    Returns number