sortedArray

Common
JVM
JS
Native
1.0
fun <T : Comparable<T>> Array<T>.sortedArray(): Array<T>

Returns an array with all elements of this array sorted according to their natural sort order.

The sort is stable. It means that equal elements preserve their order relative to each other after sorting.

Common
JVM
JS
Native
1.0
fun ByteArray.sortedArray(): ByteArray
fun ShortArray.sortedArray(): ShortArray
fun IntArray.sortedArray(): IntArray
fun LongArray.sortedArray(): LongArray
fun FloatArray.sortedArray(): FloatArray
fun DoubleArray.sortedArray(): DoubleArray
fun CharArray.sortedArray(): CharArray
@ExperimentalUnsignedTypes fun UIntArray.sortedArray(): UIntArray
@ExperimentalUnsignedTypes fun ULongArray.sortedArray(): ULongArray
@ExperimentalUnsignedTypes fun UByteArray.sortedArray(): UByteArray
@ExperimentalUnsignedTypes fun UShortArray.sortedArray(): UShortArray

Returns an array with all elements of this array sorted according to their natural sort order.