AsyncOrderedQuery Class
Package: @esfx/async-iter-query
Represents an ordered sequence of elements.
Declaration
export declare class AsyncOrderedQuery<T> extends AsyncQuery<T> implements AsyncOrderedIterable<T>
Inherited Members
Constructors
constructor(source)
Constructs a new instance of the AsyncOrderedQuery
class
Declaration
constructor(source: AsyncOrderedIterable<T> | OrderedIterable<T>);
Parameters
- source
- AsyncOrderedIterable<T> | OrderedIterable<T>
Methods
[AsyncOrderedIterable.thenByAsync](keySelector, comparer, descending)
Declaration
[AsyncOrderedIterable.thenByAsync]<K>(keySelector: (element: T) => K, comparer: Comparison<K> | Comparer<K>, descending: boolean): AsyncOrderedIterable<T>;
Type Parameters
- K
Parameters
- keySelector
- (element: T) => K
- comparer
- Comparison<K> | Comparer<K>
- descending
- boolean
Returns
thenBy(keySelector, comparer)
Creates a subsequent ordered subquery whose elements are sorted in ascending order by the provided key.
Declaration
thenBy<K>(keySelector: (element: T) => K, comparer?: Comparison<K> | Comparer<K>): AsyncOrderedQuery<T>;
Type Parameters
- K
Parameters
- keySelector
- (element: T) => K
A callback used to select the key for an element.
Returns
thenByDescending(keySelector, comparer)
Creates a subsequent ordered subquery whose elements are sorted in descending order by the provided key.
Declaration
thenByDescending<K>(keySelector: (element: T) => K, comparer?: Comparison<K> | Comparer<K>): AsyncOrderedQuery<T>;
Type Parameters
- K
Parameters
- keySelector
- (element: T) => K
A callback used to select the key for an element.