sortWith

actual fun <T> Array<out T>.sortWith(
    comparator: Comparator<in T>)
(source)

Platform and version requirements: JVM

actual fun <T> Array<out T>.sortWith(
    comparator: Comparator<in T>)
(source)

Platform and version requirements: JS

Sorts the array in-place according to the order specified by the given comparator.

fun <T> Array<out T>.sortWith(
    comparator: Comparator<in T>,
    fromIndex: Int = 0,
    toIndex: Int = size)
(source)

Platform and version requirements: JVM

Sorts a range in the array in-place with the given comparator.

actual fun <T> MutableList<T>.sortWith(
    comparator: Comparator<in T>)
(source)

Platform and version requirements: JVM

actual fun <T> MutableList<T>.sortWith(
    comparator: Comparator<in T>)
(source)

Platform and version requirements: JS

Sorts elements in the list in-place according to the order specified with comparator.