constantin-p / cp-react-tree-table

A fast, efficient tree table component for ReactJS.
https://constantin.software/cp-react-tree-table
MIT License
94 stars 27 forks source link

Enhancement : Make column sortable #30

Closed robmim closed 2 years ago

robmim commented 4 years ago

Hy CP,

I really don't know how long this feature would take to implement but having the possibility to sort the columns on the header click would be another great feature on this component.

Maybe this could be a good starting point for this feature https://www.smashingmagazine.com/2020/03/sortable-tables-react/

constantin-p commented 2 years ago

Sorting/filtering or any other data manipulation operations can be achieved externally by updating the TreeState value provided to `TreeTable.