Sorting rows with pagination

We have dhmlXGrid with paginal implementation.

If you are on the 3rd page for example, and you sort ascending, it seems to be working ok, but it keeps the user on the 3rd page… is it possible to take the user back to page 1 so all results are in order of sort.

You can use next code for such purpose


This will force switching to first page before every sorting.