W3cubDocs

/Kotlin

sortedWith

fun <T> Sequence<T>.sortedWith(
    comparator: Comparator<in T>
): Sequence<T>

Platform and version requirements: JVM

fun <T> Sequence<T>.sortedWith(
    comparator: Comparator<in T>
): Sequence<T>

Platform and version requirements: JS

Returns a sequence that yields elements of this sequence sorted according to the specified comparator.

© 2010–2017 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.sequences/sorted-with.html