<PackageReference Include="System.Linq.Async" Version="4.1.1" />

System.Linq.IOrderedAsyncEnumerable<TElement>

public interface IOrderedAsyncEnumerable<TElement> : IAsyncEnumerable<TElement>
Represents a sorted async-enumerable sequence.
IOrderedAsyncEnumerable<TElement> CreateOrderedEnumerable<TKey>(Func<TElement, TKey> keySelector, IComparer<TKey> comparer, bool descending)

Performs a subsequent ordering on the elements of an ordered async-enumerable according to a key.

IOrderedAsyncEnumerable<TElement> CreateOrderedEnumerable<TKey>(Func<TElement, ValueTask<TKey>> keySelector, IComparer<TKey> comparer, bool descending)

Performs a subsequent ordering on the elements of an ordered async-enumerable according to a key provided via a ValueTask.

IOrderedAsyncEnumerable<TElement> CreateOrderedEnumerable<TKey>(Func<TElement, CancellationToken, ValueTask<TKey>> keySelector, IComparer<TKey> comparer, bool descending)

Performs a subsequent ordering on the elements of an ordered async-enumerable according to a key provided via a ValueTask.