Ascending sorts put empty (NULL) values first. You want them at the bottom whichever way you sort.
Why can't you pass the sort direction as a ? binding?
Reveal answer
✓ Answer
Bindings are for values, not SQL keywords. A bound "desc" would be treated as a string.

