Server side query and sorting

I’m trying to use both the Query (https://docs.webix.com/desktop__query.html) and sorting for datatable. How do I persist the parameters from both Query and sorting? Currently if I change the sorting, the resulting server request will be missing the Query params (in the request body), and if I change the query, the resulting server request will be missing the sorting params. How do I get all params to persist in all requests?