I have the following Key : Value pairs.
A56:A64=9, A65:A73=9, A2:A8=7, A49:A55=7, A20:A26=7, A9:A19=11, A43:A48=6, A27:A42=16
I want to sort them in an ascending order. I tried using a TreeMap
but a got this :
{A20:A26=7, A27:A42=16, A2:A8=7, A43:A48=6, A49:A55=7, A56:A64=9, A65:A73=9, A9:A19=11}
A2:A8=7 should be first, but it is coming third.
Please let me know how I can fix this.