Map<String, String>类型进行从大到小排序
Map<String, String> result = mapSumData.entrySet().stream()
.sorted((e1, e2) -> Float.valueOf(e2.getValue()).compareTo(Float.valueOf(e1.getValue())))
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, (e1, e2) -> e1, LinkedHashMap::new));
Map<String, String>类型对其进行求和、获取平均值等
DoubleSummaryStatistics sumcc = (DoubleSummaryStatistics) mapSumData.entrySet().stream().collect(
Collectors.summarizingDouble(e->Float.valueOf(e.getValue())));
总和: sumcc.getSum()
平均数:sumcc.getAverage()
最大值:sumcc.getMax()
最小值:sumcc.getMin()