第一种map:
List<Map<String, Object>> resulAlltMap11 =resulAlltMap2.stream().sorted((m1, m2) ->{
Collator collator = Collator.getInstance(Locale.CHINA);
return collator.compare(m1.get("title"),m2.get("title"));
}).collect(Collectors.toList());
第二种实体:
List<LienObjDetailPhysis> collect = result.stream().sorted((o1, o2) -> {
Collator collator = Collator.getInstance(Locale.CHINA);
return collator.compare(o1.getLienRoomNum(),o2.getLienRoomNum());
}).collect(Collectors.toList());