list集合排序(java8以上) list.sort(Comparator.comparing(CommunityResponse::getCreatedDate)); Comparator.comparing().reversed()倒序。