I have a
Map
What is the best way to keep the map sorted according to the float?
Is SortedMap
SortedMap
TreeMap, which is an implementation of the SortedMap interface, would work.
How do I use it ?
Map map = new TreeMap();