Sort tasks by name