Lambda集合对象排序

xxxList.stream().sorted(Comparator.comparing(Object::getXXX)).collect(Collectors.toList());
posted @ 2024-09-11 14:20  秋水秋色  阅读(3)  评论(0编辑  收藏  举报