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

sortedWith

fun <T> MongoIterable<T>.sortedWith(comparator: <ERROR CLASS><in T>): List<T> (source)

Returns a list of all elements sorted according to the specified comparator.