sortedDescending

Common
JVM
JS
Native
1.0
fun < T : Comparable < T > > Array < out T > . sortedDescending ( ) : List < T >
(source)
fun < T : Comparable < T > > Iterable < T > . sortedDescending ( ) : List < T >
(source)
@ExperimentalUnsignedTypes fun UIntArray . sortedDescending ( ) : List < UInt >
(source)
@ExperimentalUnsignedTypes fun ULongArray . sortedDescending ( ) : List < ULong >
(source)
@ExperimentalUnsignedTypes fun UByteArray . sortedDescending ( ) : List < UByte >
(source)
@ExperimentalUnsignedTypes fun UShortArray . sortedDescending ( ) : List < UShort >
(source)

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.

Common
JVM
JS
Native
1.0
fun ByteArray . sortedDescending ( ) : List < Byte >
(source)
fun ShortArray . sortedDescending ( ) : List < Short >
(source)
fun IntArray . sortedDescending ( ) : List < Int >
(source)
fun LongArray . sortedDescending ( ) : List < Long >
(source)
fun FloatArray . sortedDescending ( ) : List < Float >
(source)
fun DoubleArray . sortedDescending ( ) : List < Double >
(source)
fun CharArray . sortedDescending ( ) : List < Char >
(source)

Returns a list of all elements sorted descending according to their natural sort order.