使用 Comparator.comparing 进行排序
List<CraneRecordDriverResp> result = Lists.newArrayList();
result.sort(Comparator.comparing(CraneRecordDriverResp::getNum));
List按某项属性聚合返回Map
List<TowerCraneDataRecord> craneRecords= Lists.newArrayList();
Map<String,Long> map = craneRecords.stream().collect(Collectors.groupingBy(TowerCraneDataRecord::getDriverName,Collectors.counting()));