Kotlin sort array of objects by null values first, then descending

前端 未结 0 417
闹比i
闹比i 2021-01-14 04:16

I\'d like to sort a Kotlin array of objects, with nulls first and then sort values descending. This is similar to Kotlin sorting nulls last but with a bit different sorting.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题