Sortable Headers with aria-sort and Sort Announcements
Sortable column headers expose aria-sort and are operable with Enter or Space. Each sort change triggers a polite live announcement such as 'Sorted by Price, descending'. Multi-sort announces the full ordering.
Planned. This page shows the specification from issue #203. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A product grid with sortable Name, Price and Stock columns. An announcement log panel mirrors the live region text.
Expected behavior
aria-sort updates on the active header(s), and the log shows the announced text. With multiSort, Shift+Enter adds a secondary sort and the announcement lists both.
Planned API surface
sortablemultiSortsortModelsortChangeannounceSortmessages.sortAcceptance criteria
- Only actively sorted headers carry aria-sort=ascending|descending, and unsorted headers omit the attribute. (pending)
- Enter and Space on a focused sortable header toggle the sort. (pending)
- A polite announcement is made after the sorted data renders, not before. (pending)
- Multi-sort announcements list columns in priority order. (pending)
- The sort icon has no accessible name that duplicates the aria-sort state. (pending)