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

How do people feel about my suggestion of a `.sorted()` that returns a new instance, instead of a `.sort()` that mutates the URLSearchParams instance? I guess maybe `.sort()` is more what JavaScript programmers expect. You can do a non-destructive sort via

```js
const sorted = (new URLSearchParams(usp)).sort();
```

I suppose.

-- 
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-272210074

Received on Thursday, 12 January 2017 16:28:36 UTC