private List breakfastList= new ArrayList(); Collections.sort(breakfastList, new Comparator() { public int compare(Pay arg0, Pay arg1) { return arg0.getPayDate().compareTo(arg1.getPayDate()); } });
Collections.sort,看看这个方法