lists.sort(Comparator.comparing(dto::getvalue)) 正序
示例
codeContents.sort(Comparator.comparing(CodeContent:: getInviteUserCnt).reversed()); 倒序 ,从大到小