skyrun
Active Member
i have a use-case with a 'deadline' date where if you don't fill in a date (date=blank), then that's like no deadline. i woudl like to sort the column by date ascending to show the closest deadlines first, then the blanks after that.
so it would be like a default sort on the list that would do this:
select * from work_orders ORDER BY (date_column IS NULL), date_column ASC
perhaps an option on the order by to sort nulls first or last on the order by's? and/or an option on the element to sort nulls first or last (for when the list is sorted by clicking the heading).
perhaps it can be done already through some nifty trick?
so it would be like a default sort on the list that would do this:
select * from work_orders ORDER BY (date_column IS NULL), date_column ASC
perhaps an option on the order by to sort nulls first or last on the order by's? and/or an option on the element to sort nulls first or last (for when the list is sorted by clicking the heading).
perhaps it can be done already through some nifty trick?