Closed allencch closed 7 years ago
Running into the same issue with a very similar implementation.
I checked. This issue is not from reactable
, but from the JS itself. Related issue can be found here.
It can be easily reproduced in Chrome, Opera, and even Node.
data = data.sort((a, b) => {
if (a.type < b.type) return -1;
else if (a.type > b.type) return 1;
else return 0;
});
So, this issue can be closed.
I found an issue if sorting more than 10 rows, and when the target column has the same value, the sorting is keep changing inconsistently if the header is clicked.
Any way to solve this? The actual data will get from the backend. The main problem is the sorting of the same values is inconsistent. And the issue will not appear if the table has 10 rows or below.