I fetch an array with todo titles and due dates from MySQL. I want to order it by date and have the oldest on top. But there are some todos without a date. These todos I don\'t
Yes
SELECT * FROM table ORDER BY CASE your_date WHEN '' THEN 'b' ELSE 'a' END, date ASC