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

Parameters

properties

the properties, which must contain at least one