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
Well, as a pure MySQL answer, I would probably do it like this.
select todo.title, todo.due_date from todo order by ifnull(todo.due_date, '9999-12-31')