JAVA中给List里面的Map排序
Collections.sort(listMap, new Comparator<Map<String, Object>>() {
@Override
public int compare(Map<String, Object> o1, Map<String, Object> o2) {
Integer numValue1= Integer.valueOf(o1.get("num").toString());
Integer numValue2= Integer.valueOf(o2.get("num").toString());
return numValue1.compareTo(numValue2);
}
});