Comparator<CarVioDetailVo> com = new Comparator<CarVioDetailVo>(){
@Override
public int compare(CarVioDetailVo o1, CarVioDetailVo o2) {
int num1 = Integer.parseInt(o1.getVioTime());
int num2 = Integer.parseInt(o2.getVioTime());
if (num1 < num2) {
return 1;
} else if (num1 > num2) {
return -1;
} else {
return 0;
}
}
};
Collections.sort(detailVoList,com);