sortedArrayDescending

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

Returns an array with all elements of this array sorted descending 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.sortedArrayDescending(): ByteArray
(source)
fun ShortArray.sortedArrayDescending(): ShortArray
(source)
fun IntArray.sortedArrayDescending(): IntArray
(source)
fun LongArray.sortedArrayDescending(): LongArray
(source)
fun FloatArray.sortedArrayDescending(): FloatArray
(source)
fun DoubleArray.sortedArrayDescending(): DoubleArray
(source)
fun CharArray.sortedArrayDescending(): CharArray
(source)
@ExperimentalUnsignedTypes fun UIntArray.sortedArrayDescending(): UIntArray
(source)
@ExperimentalUnsignedTypes fun ULongArray.sortedArrayDescending(): ULongArray
(source)
@ExperimentalUnsignedTypes fun UByteArray.sortedArrayDescending(): UByteArray
(source)
@ExperimentalUnsignedTypes fun UShortArray.sortedArrayDescending(): UShortArray
(source)

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