网站首页
编程语言
数据库
系统相关
其他分享
编程问答
HHMMSS
2024-10-17
Collections.sort多个字段排序
//生效日期、操作时间倒序、机型组升序privatevoidsort(List<IntpathcostAreaGroupstVO>data){Comparator<Object>com=Collator.getInstance(java.util.Locale.CHINA);Collections.sort(data,newComparator<IntpathcostAreaGroupstVO>(){@Override