Custom Sort by Page (desc. in general, but asc. in the curr page)
I'm trying to find a way to sort my data by page.
What I mean is. I want the data in general be sorted by default descending, but in the current page I want it to be sorted ascending.
Something like that:

I couldn't find a way to be able to do it, unless I pre sort before loading the data, but I would need to know how many items per page, and if the items per page changes, be able to detect it. I'm also loading the data via redux thunk. Is there a way to do it? Thanks!
edit: The only way I found is by using Remote Data. But I would lose all the functionality already implemented (search, sorting, grouping, etc...). And, because I'm loading the data with redux, I would need to, or force a update somehow or mount the table only after data is loaded.
I found out about onChangePage (should be onPageChange?) and onChangeRowsPerPage (should be onRowsPerPageChange?). It's not perfect because I need to set the data to the component state and sort every time one of those changes.