Open
Description
Sorting a table is common functionality added to a table via JavaScript. It would be helpful to have this functionality natively added to tables.
Related material:
- https://www.w3.org/WAI/ARIA/apg/patterns/table/examples/sortable-table/
- https://blog.logrocket.com/creating-react-sortable-table/
- https://stackoverflow.com/questions/14267781/sorting-html-table-with-javascript
- https://javascript.info/task/sortable-table
- https://webdesign.tutsplus.com/how-to-create-a-sortable-html-table-with-javascript--cms-92993t
- https://github.hubspot.com/sortable/docs/welcome/
Possible solution: add an attribute to a of sortable="true"
with a ::marker
of up/down (like ) for un-sorted, ▼ for descending, and ▲ for ascending.