sort

fun sort(sort: Bson): Bson

Creates a $sort pipeline stage for the specified sort specification

Return

the $sort pipeline stage

Parameters

sort

the sort specification

See also

Sorts