Task: Sorting HTML Table with JavaScript
Task: Sorting HTML Table with JavaScript: a task in Terminal-Lego-15k (Harbor dataset). Create a JavaScript-based HTML table sorting solution. When a user clicks on a column header, the table should sort its rows alphabetically by that column's content. Clicking the same column header again should…
The task
Create a JavaScript-based HTML table sorting solution. When a user clicks on a column header, the table should sort its rows alphabetically by that column's content. Clicking the same column header again should toggle between ascending (A-Z) and descending (Z-A) order.
Part of PrimeIntellect/Terminal-Lego-15k.