ascending

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

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