// 处理时间戳排序错乱问题 Collections.sort(resultList, new Comparator<Map<String, Object>>() { @Override public int compare(Map<String, Object> o1, Map<String, Object> o2) { return ((Long) o2.get("timestamp")).compareTo((Long) o1.get("timestamp")); } });
Collections方法重写对List<HashMap<String, Object>>排序
最新推荐文章于 2022-08-26 22:28:22 发布