order tasks by due date