fun sort(sort: Bson): Bson
Creates a $sort pipeline stage for the specified sort specification
sort - the sort specification
sort
Return the $sort pipeline stage
See Also
Sorts
Mongodb .driver.manual reference/operator/aggregation/sort/#sort-aggregation $sort