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

sortedByDescending

inline fun <T, R : Comparable<R>> MongoIterable<T>.sortedByDescending(crossinline selector: (T) -> R?): List<T> (source)

Returns a list of all elements sorted descending according to natural sort order of the value returned by specified selector function.