List<Map<String, String> resultList = new ArrayList<>();
resultList.sort((o1, o2) -> {
String key1 = o1.get("time");
String key2 = o2.get("time");
return key1.compareTo(key2);
});
As above, sort according to the value corresponding to time in the map