This PR enables autoResetSortBy when both onSort (manual sorting) and initialSorting are set, so that we can gain more control on the table's sortBy internal state (it resets to the initial state whenever data changes). This is useful when the data sorting can be updated from outside the table, like for example controls (maybe a "reset table" button) or route navigation.
This PR enables
autoResetSortBy
when bothonSort
(manual sorting) andinitialSorting
are set, so that we can gain more control on the table'ssortBy
internal state (it resets to the initial state wheneverdata
changes). This is useful when thedata
sorting can be updated from outside the table, like for example controls (maybe a "reset table" button) or route navigation.