Table of Contents

Method SortByCount

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

SortByCount<TId>(AggregateExpressionDefinition<TResult, TId>)

Appends a sortByCount stage to the pipeline.

IAggregateFluent<AggregateSortByCountResult<TId>> SortByCount<TId>(AggregateExpressionDefinition<TResult, TId> id)

Parameters

id AggregateExpressionDefinition<TResult, TId>

The identifier.

Returns

IAggregateFluent<AggregateSortByCountResult<TId>>

The fluent aggregate interface.

Type Parameters

TId

The type of the identifier.