Skip to main content
method URLSearchParams.prototype.sort

Sort all key/value pairs contained in this object in place and return undefined. The sort order is according to Unicode code points of the keys.

searchParams.sort();