change query sort parameters