descending

fun descending(vararg properties: KProperty<*>): Bson
fun descending(properties: List<KProperty<*>>): Bson

Create a sort specification for a descending sort on the given properties.

Return

the sort specification @mongodb.driver.manual reference/operator/meta/orderby Sort

Parameters

properties

the properties, which must contain at least one