Inspired by this tweet, I'd argue that the specified behavior for the URLSearchParams stringifier should be changed to either automatically sort by default (unlikely, due to @annevk's objections), or alternatively to support some sort of boolean opt-in to enable sorting.
I'd imagine that sorting based on parameter names, falling back to parameter values in the case of repeated parameters, would make the most sense.
Inspired by this tweet, I'd argue that the specified behavior for the
URLSearchParamsstringifier should be changed to either automatically sort by default (unlikely, due to @annevk's objections), or alternatively to support some sort of boolean opt-in to enable sorting.I'd imagine that sorting based on parameter names, falling back to parameter values in the case of repeated parameters, would make the most sense.