kotlin.collections.sortWith
sortWith
fun <T> MutableList<T>.sortWith(comparator: Comparator<in T>)
Platform and version requirements: JVM
fun <T> MutableList<T>.sortWith(comparator: Comparator<in T>)
Platform and version requirements: JS
Sorts elements in the list in-place according to the order specified with comparator.