Collections.sort(list, new Comparator<Map<Object, Object>>() { public int compare(Map<Object, Object> o1, Map<Object, Object> o2) { String map1value = (String) o1.get("date"); String map2value = (String) o2.get("date"); return map1value.compareTo(map2value); } });
源数据
List<Map<Object,Object>> list