Sort tasks, though not persist