sortedArrayDescending

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

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
fun ShortArray.sortedArrayDescending(): ShortArray
fun IntArray.sortedArrayDescending(): IntArray
fun LongArray.sortedArrayDescending(): LongArray
fun FloatArray.sortedArrayDescending(): FloatArray
fun DoubleArray.sortedArrayDescending(): DoubleArray
fun CharArray.sortedArrayDescending(): CharArray
@ExperimentalUnsignedTypes fun UIntArray.sortedArrayDescending(): UIntArray
@ExperimentalUnsignedTypes fun ULongArray.sortedArrayDescending(): ULongArray
@ExperimentalUnsignedTypes fun UByteArray.sortedArrayDescending(): UByteArray
@ExperimentalUnsignedTypes fun UShortArray.sortedArrayDescending(): UShortArray

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