集合排序
public class sortClass implements Comparator{
public int compare(Object arg0,Object arg1){
OrderListReturn.Entity user0 = (OrderListReturn.Entity)arg0;
OrderListReturn.Entity user1 = (OrderListReturn.Entity)arg1;
int flag = user1.createTime.compareTo(user0.createTime);
return flag;
}
}
sortClass sort = new sortClass();
Collections.sort(results, sort);