Sorts

object Sorts

Sorts extension methods to improve Kotlin interop

Since

5.3

Functions

Link copied to clipboard
fun ascending(vararg properties: KProperty<*>): Bson
fun ascending(properties: List<KProperty<*>>): Bson

Create a sort specification for an ascending sort on the given properties.

Link copied to clipboard
fun descending(vararg properties: KProperty<*>): Bson
fun descending(properties: List<KProperty<*>>): Bson

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

Link copied to clipboard
fun <T> metaTextScore(property: KProperty<T>): Bson

Create a sort specification for the text score meta projection on the given property.