Method Sort

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver

Assembly

MongoDB.Driver.dll

Sort(SortDefinition)

Appends a sort stage to the pipeline.

IAggregateFluent<TResult> Sort(SortDefinition<TResult> sort)

Parameters

sort SortDefinition

The sort specification.

Returns

IAggregateFluent

The fluent aggregate interface.