kmongo / org.litote.kmongo / ascending

ascending

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

Create a sort specification for an ascending 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