//排序
Set<Dept> deptList = new TreeSet<Dept>(
new Comparator<Dept>(){
@Override
public int compare(Dept d1, Dept d2) {
// TODO Auto-generated method stub
return d1.getDeptid().compareTo(d2.getDeptid());
}
}
);
Set<Dept> deptList = new TreeSet<Dept>(
new Comparator<Dept>(){
@Override
public int compare(Dept d1, Dept d2) {
// TODO Auto-generated method stub
return d1.getDeptid().compareTo(d2.getDeptid());
}
}
);