{"action":"created","issue":{"url":"https://api.github.com/repos/CashStar/nap/issues/12","repository_url":"https://api.github.com/repos/CashStar/nap","labels_url":"https://api.github.com/repos/CashStar/nap/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/CashStar/nap/issues/12/comments","events_url":"https://api.github.com/repos/CashStar/nap/issues/12/events","html_url":"https://github.com/CashStar/nap/pull/12","id":150458264,"number":12,"title":"Ill 1432 sort query parameters","user":{"login":"dcampbell24","id":87889,"avatar_url":"https://avatars.githubusercontent.com/u/87889?v=3","gravatar_id":"","url":"https://api.github.com/users/dcampbell24","html_url":"https://github.com/dcampbell24","followers_url":"https://api.github.com/users/dcampbell24/followers","following_url":"https://api.github.com/users/dcampbell24/following{/other_user}","gists_url":"https://api.github.com/users/dcampbell24/gists{/gist_id}","starred_url":"https://api.github.com/users/dcampbell24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcampbell24/subscriptions","organizations_url":"https://api.github.com/users/dcampbell24/orgs","repos_url":"https://api.github.com/users/dcampbell24/repos","events_url":"https://api.github.com/users/dcampbell24/events{/privacy}","received_events_url":"https://api.github.com/users/dcampbell24/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-04-22T19:59:06Z","updated_at":"2016-04-28T21:20:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/CashStar/nap/pulls/12","html_url":"https://github.com/CashStar/nap/pull/12","diff_url":"https://github.com/CashStar/nap/pull/12.diff","patch_url":"https://github.com/CashStar/nap/pull/12.patch"},"body":"This PR adds a function that sorts the query parameters in a url before using the url in a cache key so that otherwise equivalent urls generate the same key."},"comment":{"url":"https://api.github.com/repos/CashStar/nap/issues/comments/215566090","html_url":"https://github.com/CashStar/nap/pull/12#issuecomment-215566090","issue_url":"https://api.github.com/repos/CashStar/nap/issues/12","id":215566090,"user":{"login":"gaconnet","id":292767,"avatar_url":"https://avatars.githubusercontent.com/u/292767?v=3","gravatar_id":"","url":"https://api.github.com/users/gaconnet","html_url":"https://github.com/gaconnet","followers_url":"https://api.github.com/users/gaconnet/followers","following_url":"https://api.github.com/users/gaconnet/following{/other_user}","gists_url":"https://api.github.com/users/gaconnet/gists{/gist_id}","starred_url":"https://api.github.com/users/gaconnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaconnet/subscriptions","organizations_url":"https://api.github.com/users/gaconnet/orgs","repos_url":"https://api.github.com/users/gaconnet/repos","events_url":"https://api.github.com/users/gaconnet/events{/privacy}","received_events_url":"https://api.github.com/users/gaconnet/received_events","type":"User","site_admin":false},"created_at":"2016-04-28T21:20:46Z","updated_at":"2016-04-28T21:20:46Z","body":"In the URI spec it's unspecified and application dependent, but for content type [application/x-www-form-urlencoded](https://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1) it's mandated. Python's [parse_qsl](https://docs.python.org/2/library/urlparse.html#urlparse.parse_qsl) unconditionally treats its input as `application/x-www-form-urlencoded and returns a list`, so in general across Django we have most applications respecting an ordering."}}