Sorting
People reorder a list to bring what matters to the top, then lose track of which order they are looking at.
The answer
Always show which sort order is in use, and keep it across pages and Back. As strong as the weakest rule behind it: moderate.
-
Always show which sort order is on.
Baymard reports 30% of benchmarked sites used a placeholder that hid the current order; the APG example marks the sorted column. No measured effect.
- Applies when
- A list or table can be sorted.
- Based on
- Practitioner research
- Principle
- Keep people informed
- Common mistake
- A sort control whose label is "Sort by" and nothing else.
- User researchUser research: Essential sort types for product listsMark Crowley, 2021
- GuidanceGuidance: Sortable Table ExampleW3C WAI ARIA Authoring Practices Guide, 2025
-
Keep the chosen order across pages and on Back.
Baymard reports 27% of benchmarked sites mishandled sort and filter on Back; Primer stores state in the address.
- Applies when
- The list is paged or the person leaves and returns.
- Based on
- Practitioner research
- Principle
- Be consistent
- Common mistake
- Resetting the order when the person pages or goes Back.
- User researchUser research: 4 Design Patterns That Violate 'Back' Button UX Expectations - 59% of Sites Get It WrongChristian Holst, 2020
- User research: What Is an Ecommerce Filter? UI Best PracticesCarl MacDonald, 2026
- GuidanceGuidance: Filter scenario patternGitHub Primer
The other rules
-
Mark the sorted column and its direction in code, on that column only, and make each sortable header a button.
ARIA practices example; non-binding, so no floor from it. The state must be exposed under WCAG 4.1.2, but aria-sort as the means is the APG's.
- Applies when
- A table has sortable columns.
- Based on
- Standard or law
- Principle
- Work for everyone
- StandardStandard: Understanding SC 4.1.2 Name, Role, ValueW3C WAI, 2026
- GuidanceGuidance: Sortable Table ExampleW3C WAI ARIA Authoring Practices Guide, 2025
-
Offer the orders people expect. For shopping: price both ways, rating, best-selling and newest.
One practitioner source, sample not stated.
- Applies when
- Choosing sort options.
- Based on
- Practitioner research
- Principle
- Keep people in control
- User researchUser research: Essential sort types for product listsMark Crowley, 2021
-
Default to a relevance order that shows the range on offer, not price or A to Z.
One source; no controlled comparison of defaults, and its thresholds are not validated.
- Applies when
- Choosing the default order for a product category.
- Based on
- Practitioner research
- Principle
- Recognition over recall
- User researchUser research: Default sort type for product listsKathryn Reeves, 2021
-
Don’t use sorting in place of filters. Sorting reorders everything and removes nothing.
Stated in two articles from one publisher.
- Applies when
- People want to narrow a list.
- Based on
- Practitioner research
- Principle
- Make controls match their effects
- User researchUser research: Essential sort types for product listsMark Crowley, 2021
- User research: 5 Essential Filter Types Users Need on Product Listing PagesMark Crowley, 2020
-
When a table re-sorts in place, test with screen readers, and add a status message if the change isn’t announced.
The APG example announces nothing beyond aria-sort and warns of support gaps. No testing found.
- Applies when
- A table is re-sorted in place.
- Based on
- Convention
- Principle
- Work for everyone
- GuidanceGuidance: Sortable Table ExampleW3C WAI ARIA Authoring Practices Guide, 2025
Accessibility
Open questions
- OpenWhat should the default order be? No controlled study opened.
- OpenDo people confuse sorting with filtering? Asserted, not measured.
- OpenNo peer-reviewed study of sorting was found.
Sources
- User researchUser research: Essential sort types for product listsMark Crowley, 2021
- User research: Default sort type for product listsKathryn Reeves, 2021
- User research: 5 Essential Filter Types Users Need on Product Listing PagesMark Crowley, 2020
- User research: 4 Design Patterns That Violate 'Back' Button UX Expectations - 59% of Sites Get It WrongChristian Holst, 2020
- User research: What Is an Ecommerce Filter? UI Best PracticesCarl MacDonald, 2026
- StandardStandard: Understanding SC 4.1.2 Name, Role, ValueW3C WAI, 2026
- GuidanceGuidance: Sortable Table ExampleW3C WAI ARIA Authoring Practices Guide, 2025
- Guidance: Filter scenario patternGitHub Primer
Related
- Faceted filtersShow the applied filters together, each one removable, and keep them in the page address.Answer: moderate.
- Results pagesPut the best match first, and make each summary say what the item really is.Answer: weak.
- Data tablesUse real tables with marked-up headers, and keep the identifying column first.Answer: weak.
- The back buttonMake Back return to the view people last saw, with their place and their input restored.Answer: moderate.