sort

fun sort()(source)

The URLSearchParams.sort() method sorts all key/value pairs contained in this object in place and returns undefined.

MDN Reference