list = list.stream().sorted((s1, s2) -> {
return (s1.getPositionLevel().compareTo(s2.getPositionLevel()));
}).collect(Collectors.toList());
List排序
最新推荐文章于 2023-08-08 13:48:23 发布
list = list.stream().sorted((s1, s2) -> {
return (s1.getPositionLevel().compareTo(s2.getPositionLevel()));
}).collect(Collectors.toList());