Sort tasks by due_date in calendar