I am trying to sort a hashmap based on alphabetical value which itself is stored inside another Map.
The structure looks like:
Map<String, HashMap<String, String>>
I want to sort this Map based on the value of the HashMap inside so all in all the full map will be sorted so as the HashMap based on the HashMap's value.
-- UPDATE:
For example if I have something like:
Map: abc Value: HashMap[EN, a]
Map: xyz Value: HashMap[DE, c]
Map: pqr Value: HashMap[PL, b]
then after sort it should be something like:
Map: abc Value: HashMap[EN, a]
Map: pqr Value: HashMap[PL, b]
Map: xyz Value: HashMap[DE, c]
How to proceed?