Adds a Twig filter to sort entries by a specified field's value