order the todos in the index and completed pages