resets pages keys after sorting to numerical values

allows using loop.index keys in twig loop