Type alias ComparatorFunction<T>

ComparatorFunction<T>: SortedArrayComparatorFunction<T>

Type of a comparison function that can be used in constructing and configuring a SortedArray instance.

Comparator functions accept two inputs and return a negative number when the first argument comes before the second argumet in a sorted order, a positive number when the first argument comes after the second, and zero when they have same sort order.

See also SortedArray.DefaultComparatorFunction. This is the default function that is used for a SortedArray when none is explicitly provided.

Type Parameters

  • T

Generated using TypeDoc