sortByCount

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

Creates a $sortByCount pipeline stage for the specified filter

Return

the $sortByCount pipeline stage

Parameters

the expression type
filter

the filter specification