map = new LinkedHashMap<String, String>();
list = new ArrayList<HashMap<String, String>>();
map.put("id", id);
map.put("amt", amt);
list.add(map);
How to sort the list with ascending order of amt
. I was unable to do this.
I'd really appreciate any help.
I am adding id
, amt
in loop. How to sort with key as amt
?
id=1,2,3,4,5
amt=1000,33333,77,9087,5432