排序:
Collections.sort(tipinfosort_beforesort, new Comparator<TipInfoforSort>() { public int compare(TipInfoforSort arg0, TipInfoforSort arg1) { //降序排列 return arg1.getTinfo().getSortvalue().compareTo(arg0.getTinfo().getSortvalue()); } });
排序:
Collections.sort(tipinfosort_beforesort, new Comparator<TipInfoforSort>() { public int compare(TipInfoforSort arg0, TipInfoforSort arg1) { //降序排列 return arg1.getTinfo().getSortvalue().compareTo(arg0.getTinfo().getSortvalue()); } });