So I am trying to sort a Hashmap which
.
I want to sort them on the basis of their key value but can't find the answer to it.
Asked
Active
Viewed 16 times
0
Ranjeet Bansode
- 11
- 1
-
`Map`s are not sortable. They may have a deterministic iteration order, but that doesn't mean it's indexed or that you can reorder the entries. – Bergi Jan 29 '22 at 19:03