Default column sorting

Hi everybody,
The sort works fine, but after the sort when I get the grid data, it is not sorted.
Any ideas, how can I get the grid data sorted?

Thank you

You may try to serialize your grid. It will provide a generated xml of the current state of the grid:
https://docs.dhtmlx.com/api__dhtmlxgrid_serialize.html