• /**

    • Sorts the elements of a sequence in ascending 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<AsyncIterable<TSource>, OrderedAsyncIterableX<TKey, TSource>>

    An ordered async-iterable sequence whose

    • elements are sorted according to a key and comparer.

Generated using TypeDoc