Open wanhang189 opened 1 week ago
排序方法是否可以加个参数,null值排第一或最后
默认null值都是放到最后,如果想放到前面 可以使用 sortAsc(NullLastComparator.comparing(Student::getAge)) 或者 sortDesc(NullFirstComparator..comparing(Student::getAge))
排序方法是否可以加个参数,null值排第一或最后