jbetancur / react-data-table-component

A responsive table library with built-in sorting, pagination, selection, expandable rows, and customizable styling.
https://react-data-table-component.netlify.app
Apache License 2.0
2.06k stars 413 forks source link

sort function runs every time data changes #1234

Open mohamed-elzohery opened 6 months ago

mohamed-elzohery commented 6 months ago

Issue sort function runs every time data changes

When sort is active for a certain column and consider that column displays an input element, whenever the value in this element changes the sort function fires and the row of this element has its order changed. This not the best user experience.

Suggestion: sort function should be customized to only run when the sort icon is clicked not when the data is changed.