order query parameters ourselves to avoid random ordering on perl-5.18+

t/web/walk.t might test the same pages(only query params ordering differs) for
multiple times without this.

it's also more right if we show consistent urls.
Merge branch '4.0-trunk'