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.03k stars 409 forks source link

sort function runs every time data changes #1234

Open mohamed-elzohery opened 3 months ago

mohamed-elzohery commented 3 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.