Collections.sort(list,new Comparator<User >(){ public int compare(User arg0, User arg1) { return arg0.getOrder().compareTo(arg1.getOrder()); } });
list为要排序的list,按User的order属性排序。