Sort tasks by completed date