How to sort LinkedHashMap by values in Kotlin? April 8, 2024 by Tarik map.toList() .sortedBy { (key, value) -> value } .toMap()