Collections.sort(lstMineForOneFile, new Comparator() {
public int compare(Object a, Object b) {
int orderA = Integer.parseInt(String.valueOf(((WorkProject)a).getSelfTaskId()));
int orderB = Integer.parseInt(String.valueOf(((WorkProject)b).getSelfTaskId()));
return orderA - orderB;
}
});
以WorkProject对象中的selfTaskId排序