kmongo / org.litote.kmongo / descending

descending

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

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

Parameters

properties - the properties, which must contain at least one

Return
the sort specification

Mongodb
.driver.manual reference/operator/meta/orderby Sort