I have a collection in the form of key, value pair and I was trying to sort it on the basis of key itself the values in the collection is
cd,20
ef,65
ab,28
gh,76
Now as shown the first is key , please advise me the ways by which I can sort it on the basis of key itself, That is the output that I was looking would be.
ab,28
cd,20
ef,65
gh,76