Sort query params