java中List根据某个字段排序,并在排序字段为空时也不报错
list.sort(Comparator.comparing(DemandGZDTO::getPlanDate, Comparator.nullsLast(LocalDate::compareTo)));
java中List根据某个字段排序,并在排序字段为空时也不报错
list.sort(Comparator.comparing(DemandGZDTO::getPlanDate, Comparator.nullsLast(LocalDate::compareTo)));