Collections.sort(list, new Comparator<Unit>() {
public int compare(Unit o1, Unit o2) {
return NumberUtils.toInt(o1.getOrderid()) - NumberUtils.toInt(o2.getOrderid());
}
});
Collections.sort(list, new Comparator<Unit>() {
public int compare(Unit o1, Unit o2) {
return NumberUtils.toInt(o1.getOrderid()) - NumberUtils.toInt(o2.getOrderid());
}
});