sortedByValueDescending
Returns a map of all elements sorted by dec value.
Example:
mapOf(5 to 1, 10 to 10, 1 to 0).sortedByValueDescending() // {10:10, 5:1, 1:0}
mapOf("11" to 1, "1" to 10, "a" to 0).sortedByValueDescending() // {"a":0, "11":1, "1":10}
Content copied to clipboard
Since
1.1.0