标签:date ret 字段 list lis tor return collect 排序
Collections.sort(actList, new Comparator<Act>() {
@Override
public int compare(Act o1, Act o2) {
return o1.getEndDate().compareTo(o2.getEndDate());//顺序
/*return o2.getEndDate().compareTo(o1.getEndDate());//降序*/
}
});
标签:date ret 字段 list lis tor return collect 排序
原文地址:http://www.cnblogs.com/xlj227/p/6860874.html