Jeff Tycz
04/30/2021, 1:02 AMtoSortedMap
seems not to be available in the common module only the JVM. What is the way to sort a hashmap in the common module?ephemient
04/30/2021, 1:13 AMJeff Tycz
04/30/2021, 1:14 AMephemient
04/30/2021, 1:16 AMJeff Tycz
04/30/2021, 1:18 AMephemient
04/30/2021, 1:19 AMmap.entries.sortedBy { it.key }.associateBy({ it.key }, { it.value })
would create a new read-only map with ordered keysJeff Tycz
04/30/2021, 1:19 AMephemient
04/30/2021, 1:19 AMmap.entries.sortedBy { it.key }
Jeff Tycz
04/30/2021, 1:21 AM