kmongo / org.litote.kmongo / sortByCount

sortByCount

fun <TExpression> sortByCount(filter: TExpression): Bson (source)

Creates a $sortByCount pipeline stage for the specified filter

Parameters

filter - the filter specification

Parameters

Return
the $sortByCount pipeline stage

Mongodb
.driver.manual reference/operator/aggregation/sortByCount/ $sortByCount