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

Parameters

properties

the properties, which must contain at least one