1.对map中的value进行倒序排序
map.entrySet().stream().sorted(Collections.reverseOrder(Map.Entry.comparingByValue())).forEach(System.out::println);
2.对map中的value进行正向排序
map.entrySet().stream().sorted(Comparator.comparing(e>e.getValue())).forEach(System.out::println);