sort

abstract fun sort(sort: Bson?): MapReduceFlow<TResult>

Sets the sort criteria to apply to the query.

Return

this

Parameters

sort

the sort criteria, which may be null.