Table of Contents

Method Sort

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Sort(SortDefinition<TResult>)

Appends a sort stage to the pipeline.

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

Parameters

sort SortDefinition<TResult>

The sort specification.

Returns

IAggregateFluent<TResult>

The fluent aggregate interface.