To sort by keys I can use
map.toSortedMap()
But what is the best way to sort LinkedHashMap by values in Kotlin?
map.toList() .sortedBy { (key, value) -> value } .toMap()