querystring.sort()

Returns the given URL with its query-string sorted. For example, querystring.sort("/foo?b=1&a=2&c=3"); returns "/foo?a=2&b=1&c=3".

Format

STRING
querystring.sort(STRING)

Examples

1
set req.url = querystring.sort(req.url);