@metreeca/core - v0.13.0
    Preparing search index...

    Type Alias Comparator<V>

    Comparator: (a: V, b: V) => number

    Comparison function.

    Orders pairs of values for sorting and other comparator-based operations. The result is negative if a precedes b, positive if a follows b, and zero if the two values are equivalent and their relative order is irrelevant.

    Type Parameters

    • V

      The type of values to compare

    Type Declaration

      • (a: V, b: V): number
      • Parameters

        Returns number