Fix sorting query parameter.

Now it should work (TM)