A delegate which determines the order of two objects.

Type Parameters

  • T = undefined

Constructors

Constructors

  • Constructor for comparisons.

    Type Parameters

    • T = undefined

    Parameters

    • argType: TypeRef<CsType<T>>

      The type of objects to compare.

    • callback: ((o1: T, o2: T) => number | Int32)

      A callback function which determines the order of two objects. This function must return a number which fits in a 32-bit unsigned integer.

        • (o1, o2): number | Int32
        • Parameters

          • o1: T
          • o2: T

          Returns number | Int32

    Returns Comparison<T>