sort task by dueDate