list集合根据时间排序 list = list.stream().sorted(Comparator.comparing(实体类::需要排序的字段).reversed()).collect(Collectors.toList());