Corrected ascending order index traversal