升序 users.sort(Comparator.comparing(User::getCreatedOn)); 降序 users.sort(Comparator.comparing(User::getCreatedOn).reversed()); 参考 Sort a List of Objects by Field in Java