Method Sort
Sort<TInput>(SortDefinition<TInput>)
Creates a $sort stage.
public static PipelineStageDefinition<TInput, TInput> Sort<TInput>(SortDefinition<TInput> sort)
Parameters
sort
SortDefinition<TInput>The sort.
Returns
- PipelineStageDefinition<TInput, TInput>
The stage.
Type Parameters
TInput
The type of the input documents.