{"action":"closed","issue":{"url":"https://api.github.com/repos/KnpLabs/KnpPaginatorBundle/issues/300","labels_url":"https://api.github.com/repos/KnpLabs/KnpPaginatorBundle/issues/300/labels{/name}","comments_url":"https://api.github.com/repos/KnpLabs/KnpPaginatorBundle/issues/300/comments","events_url":"https://api.github.com/repos/KnpLabs/KnpPaginatorBundle/issues/300/events","html_url":"https://github.com/KnpLabs/KnpPaginatorBundle/issues/300","id":69432677,"number":300,"title":"How to get the new sorting direction.","user":{"login":"Mondane","id":1150272,"avatar_url":"https://avatars.githubusercontent.com/u/1150272?v=3","gravatar_id":"","url":"https://api.github.com/users/Mondane","html_url":"https://github.com/Mondane","followers_url":"https://api.github.com/users/Mondane/followers","following_url":"https://api.github.com/users/Mondane/following{/other_user}","gists_url":"https://api.github.com/users/Mondane/gists{/gist_id}","starred_url":"https://api.github.com/users/Mondane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mondane/subscriptions","organizations_url":"https://api.github.com/users/Mondane/orgs","repos_url":"https://api.github.com/users/Mondane/repos","events_url":"https://api.github.com/users/Mondane/events{/privacy}","received_events_url":"https://api.github.com/users/Mondane/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-19T14:58:28Z","updated_at":"2015-04-26T13:54:09Z","closed_at":"2015-04-26T13:54:09Z","body":"In a template, it's possible to get the current sorting direction usign:\r\n\r\n```twig\r\n{{ pagination.direction }}\r\n```\r\n\r\nHow would I be able to get the new sorting direction that is in the URL created by \r\n\r\n```twig\r\n{{ knp_pagination_sortable(pagination, 'Id', 'e.id', {'title': (\"Order ascending\")|trans }) }}\r\n```\r\n\r\n?\r\n\r\nObviously, the part that I want to translate, needs to have a dynamic direction."}}