sortedDescending
Returns a list of all elements sorted descending according to their natural sort order.
Use sortedArrayDescending if you need to get the result in an array.
The sort is stable. It means that equal elements preserve their order relative to each other after sorting.
Since Kotlin
1.0Returns a list of all elements sorted descending according to their natural sort order.
Use sortedArrayDescending if you need to get the result in an array.
Since Kotlin
1.0Returns 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.
Since Kotlin
1.0Returns a list of all elements sorted descending according to their natural sort order.
Use sortedArrayDescending if you need to get the result in an array.