method URLSearchParams.sort
URLSearchParams.sort(): void

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();

Return Type

void