1.集合中含有字符串排序----->须将字符串字段转为Integer类型排序
2.方式一:集合排序 集合.sort(Comparator.comparing(集合中的对象::getCancelFansCount))
倒序:Collections.reverse(list);
方式二:
集合= 集合.stream().sorted(Comparator.comparing(集合中的对象::getVersionTime)
.reversed()).collect(Collectors.toList());
原文:https://www.cnblogs.com/studyByzh/p/10570060.html