Collections.sort(cmsFiles,new Comparator(){
@Override
public int compare(Object o1, Object o2) {
// TODO Auto-generated method stub
CmsFile cmsFile1=(CmsFile)o1;
CmsFile cmsFile2=(CmsFile)o2;
return cmsFile1.getNumber()-cmsFile2.getNumber();
}
});
list排序
最新推荐文章于 2024-10-06 20:16:20 发布