Click or drag to resize

IAggregateFluent<TResult>.SortByCount<TId> Method

Appends a sortByCount stage to the pipeline.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.8.0+cc573f3e1f48f39162b4b680e921a623e127e8fa
Syntax
IAggregateFluent<AggregateSortByCountResult<TId>> SortByCount<TId>(
	AggregateExpressionDefinition<TResult, TId> id
)

Parameters

id
Type: MongoDB.Driver.AggregateExpressionDefinition<TResult, TId>
The identifier.

Type Parameters

TId
The type of the identifier.

Return Value

Type: IAggregateFluent<AggregateSortByCountResult<TId>>
The fluent aggregate interface.
See Also