sampleWorkModelList = sampleWorkModelList.stream().sorted(Comparator.comparing(s -> {
return Integer.valueOf(s.getWorkModel());
})).collect(Collectors.toList());
s.getWorkModel()为String类型
sampleWorkModelList = sampleWorkModelList.stream().sorted(Comparator.comparing(s -> {
return Integer.valueOf(s.getWorkModel());
})).collect(Collectors.toList());
s.getWorkModel()为String类型