Table of Contents

Method Sort

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

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.