Fixed sorting parameter in twig extension