inline fun <T, R : Comparable<R>> MongoIterable<T>.sortedBy(crossinline selector: (T) -> R?): List<T>
Returns a list of all elements sorted according to natural sort order of the value returned by specified selector function.