fun <TExpression> sortByCount(filter: TExpression): Bson
(source)
Creates a $sortByCount pipeline stage for the specified filter
filter
- the filter specification
Parameters
Return
the $sortByCount pipeline stage
Mongodb
.driver.manual reference/operator/aggregation/sortByCount/ $sortByCount