gistfile1.txt map = list.stream().collect( Collectors.groupingBy(ClueRule::getCrScore ,Collectors.toList())) .entrySet().stream() .sorted(Map.Entry.comparingByKey()) .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, (oldValu
map = list.stream().collect( Collectors.groupingBy(ClueRule::getCrScore ,Collectors.toList())) .entrySet().stream() .sorted(Map.Entry.comparingByKey()) .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, (oldValue, newValue) -> oldValue, LinkedHashMap::new));