Comparator<PromotionRule> comparator = Comparator.comparing(PromotionRule::getCreatedTime); promotionRuleList.sort(comparator.reversed());
List lambda 排序
原文:https://www.cnblogs.com/mengjianzhou/p/9057104.html