📅  最后修改于: 2022-03-11 14:48:28.201000             🧑  作者: Mango
List sortedUsers = users.stream()
.sorted(Comparator.comparing(User::getCreatedOn).reversed())
.collect(Collectors.toList());