Sorting, empty values at bottom #456
Answered
by
blacksmithgu
antoniocanas
asked this question in
Q&A
-
Hi, I'm sorting based on two fields, priority and due date, with Is there any way I can sort it like this? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
blacksmithgu
Aug 30, 2021
Replies: 1 comment 1 reply
-
The easiest way is to use the null-coalescing operator to provide some big default vault that goes to the bottom, like |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
M-bot
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The easiest way is to use the null-coalescing operator to provide some big default vault that goes to the bottom, like
.sort(i => [i.prio, i.due ?? dv.date("3000-01-01")])
.