var sortedKeys = myHashmap.keySet().toArray().sorted()
Programming Tips - Scala: get the keys of a Map sorted
Date: 2014oct1
Update: 2025jun30
Language: Scala
Q. Scala: get the keys of a Map sorted
A. Here is a nice way to do it. If you have myHashMap: