Re: [whatwg/url] Sort URLSearchParams prior to stringification (#26)

So looking at this somewhat fresh and rereading the tweet thread it seems this is actually specific to URLSearchParams since it affects cache interactions. Neither Headers nor FormData encounter such a scenario. It also seems that a simple lexical sort should be sufficient here and that you actually do want to affect the current instance.

@igrigorik does that sound about right?

If that is correct, just adding a `sort()` member which uses lexical sort to sort the existing items in the list (using name is the sort key) seems like the way to go.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/26#issuecomment-267978678

Received on Monday, 19 December 2016 14:36:35 UTC