• Sorts the elements of a sequence in descending order according to a key by using a specified comparer.

    Type Parameters

    • TKey

      The type of the elements of source.

    • TSource

      The type of the key returned by keySelector.

    Parameters

    • keySelector: ((item) => TKey)

      A function to extract a key from an element.

        • (item): TKey
        • Parameters

          • item: TSource

          Returns TKey

    • Optional comparer: ((fst, snd) => number) = defaultSorter

      A comparer to compare keys.

        • (fst, snd): number
        • Parameters

          • fst: TKey
          • snd: TKey

          Returns number

    Returns UnaryFunction<Iterable<TSource>, OrderedIterableX<TKey, TSource>>

    An ordered iterable sequence whose elements are sorted in descending order according to a key and comparer.

Generated using TypeDoc