map排序
Map<String, String> map = new HashMap<>();
TreeMap<String, String> maps = new TreeMap<>(new Comparator<String>() {
@Override
public int compare(String o1, String o2) {
return o1.compareTo(o2);
}
});
maps.putAll(map);
lambda排序
https://blog.csdn.net/u011623836/article/details/103714726?spm=1001.2014.3001.5502