Fixing order of todos in getAllTasks