Lists and formsPath 11/21
ListsState & eventsDerived stateAccessibility
Prerequisites are suggestions only. Every challenge stays open.
Sortable Data Table
Implement sorting for mixed string and number columns.
Requirements
- Track the sort key and direction together.
- Copy the source array before sorting.
- Toggle direction when the active header is clicked.
- Default a newly selected column to ascending.
- Indicate the active direction visually.