sortedDescending
fun <T : Comparable<T>> Array<out T>.sortedDescending(): List<T>
fun <T : Comparable<T>> Iterable<T>.sortedDescending(): List<T>
@ExperimentalUnsignedTypes fun ULongArray.sortedDescending(): List<ULong>
@ExperimentalUnsignedTypes fun UByteArray.sortedDescending(): List<UByte>
@ExperimentalUnsignedTypes fun UShortArray.sortedDescending(): List<UShort>
Returns a list of all elements 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.
fun ShortArray.sortedDescending(): List<Short>
fun FloatArray.sortedDescending(): List<Float>
fun DoubleArray.sortedDescending(): List<Double>
Returns a list of all elements sorted descending according to their natural sort order.