sorting - How to sort LinkedHashMap by values in Kotlin? -


to sort keys can use

map.tosortedmap() 

but best way sort linkedhashmap values in kotlin?

map.tolist().sortedby { (key, value) -> value }.tomap()


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -