I have a Linkedhasmap and have key and values
Now i want to sort the map by values and the key and value should appear as follows
Example,
Key Value
1 0.0
2 0.2
3 0.5
4 0.0
5 0.3
6 0.0
7 0.1
Expected output
1 0.0
4 0.0
6 0.0
7 0.1
2 0.2
5 0.3
3 0.5
Please advise
Thanks