Collections.sort(resultList, new Comparator>() {@Overridepublic int compare(HashMap o1, HashMap o2) {Date time1 = (Date) o1.get("submit_time");Date time2 = (Date) o2.get("submit_time");if (null == time1) {return -1;}if (null == time2) {return 1;}return time1.compareTo(time2);}});return ResultMessage.getSuccess().setData(resultList);}