• sort a number collection (Descending)

    Returns SortFn<number | undefined>

  • sort a collection based on a number (Descending)

    Type Parameters

    • T extends object

    Parameters

    • getNum: ((x: T) => undefined | number)

      Define the number mapper

        • (x): undefined | number
        • Parameters

          Returns undefined | number

    Returns SortFn<T>