cdp-frontend
cdp-frontend copied to clipboard
Tables Sortable By Column
Use Case
All tables should be sortable by each column. This affects all tables.
Solution
Each table could take a sortByColumn prop. This would be a function, and ask the container to re-order the data by
Alternatives
The tables could be somehow integrated into the containers? Or... something, something, Global State (Redux 🤮 ).
Questions
Not all columns will be sortable-by. The solution proposed does not have a way for a column to know if it should show as 'sortable'.