I have a Map that has strings for both keys and values.
Data is like following:
\"question1\", \"1\" \"question9\", \"1\" \"que
Just use TreeMap
new TreeMap(unsortMap);
Be aware that the TreeMap is sorted according to the natural ordering of its 'keys'