kmongo / org.litote.kmongo / sort

sort

fun sort(sort: Bson): Bson (source)

Creates a $sort pipeline stage for the specified sort specification

Parameters

sort - the sort specification

Return
the $sort pipeline stage

See Also

Sorts

Mongodb
.driver.manual reference/operator/aggregation/sort/#sort-aggregation $sort