Collections.sort(list, new Comparator<Map<String, Object>>() {
@Override
public int compare(Map<String, Object> o1, Map<String, Object> o2) {
Date date1 = (Date)o1.get("date");
Date date2 = (Date)o2.get("date");
return date2.compareTo(date1);
}
});
Collections.sort(list, new Comparator<Map<String, Object>>() {
@Override
public int compare(Map<String, Object> o1, Map<String, Object> o2) {
Date date1 = (Date)o1.get("date");
Date date2 = (Date)o2.get("date");
return date2.compareTo(date1);
}
});