Collections.sort(collect,new Comparator<PadPersonPageResponse>() {
@Override
public int compare(PadPersonPageResponse o1, PadPersonPageResponse o2) {
if (o1.getSignInTime() == null && o2.getSignInTime() == null) {
return 0;
}
if (o1.getSignInTime() == null ) {
return -1;
}
if (o2.getSignInTime() == null) {
return 1;
}
return o1.getSignInTime().compareTo(o2.getSignInTime());
}
});
可以做一个排序来规避这个问题