method URLSearchParams.sortprivateURLSearchParams.sort(): voidDeprecatedSort 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(); Return Typevoid