appended sort params to the query