kmongo / kotlin.collections / com.mongodb.client.MongoIterable / sorted

sorted

fun <T : Comparable<T>> MongoIterable<T>.sorted(): List<T> (source)

Returns a list of all elements sorted according to their natural sort order.