Why this wireframe works | Sortable table
Readers sort into the order they want
Some people look for the newest document; others want to start with the shortest. Pressing a column header sorts by that column.
The whole header is clearly pressable
When only the header text is pressable, people do not notice it can be pressed. A button spans the full header width, and the arrow shows it sorts.
The current order is conveyed three ways
An arrow alone can be read as ascending or descending by mistake. Besides the header arrow and background, aria-sort and the caption text state the current order.
Each sort is announced
Rows changing order is invisible to screen reader users. After sorting, “Sorted by pages, most first” is announced.
Numbers and dates sort correctly
Left-aligned numbers or inconsistent date formats sort wrongly and compare poorly. Numeric columns are right-aligned, dates use one format, and a sort value is kept separately.
Common mistakes | Sortable table
Only the header text is pressable
Small pressable text goes unnoticed and is hard to hit. Make the full header width a button and show the arrow.
Inconsistent date formats that sort wrongly
Mixing “September 2026” and “9/10” breaks the order when sorted as text. Use one format and keep a separate sort value.
Reloading the page on every sort
A reload that scrolls back to the top makes readers find the table again. Sort within the page and keep the position.
The order shown by arrow alone
An arrow alone can be misread and does not reach screen readers. Show it with aria-sort and words as well.
FAQ | Sortable table
What should the initial order be?
The order readers use most. For documents and news, newest first is common. State the initial order in the caption.
Are both sorting and filtering needed?
With many rows and readers searching by condition, filtering helps. With up to a few dozen rows that can be found by changing the order, sorting alone may be enough.
Should many rows be split into pages?
Splitting makes it unclear whether sorting applies to the current page or all rows. If you split, sort across all rows and say so.















