# Sorting

> People reorder a list to bring what matters to the top, then lose track of which order they are looking at.

Area: Search. Evidence behind the answer: Moderate. Last checked November 12, 2026.
Page: https://uxreference.com/search/sorting

## The answer

Always show which sort order is in use, and keep it across pages and Back.

- **Moderate.** Always show which sort order is on. (https://uxreference.com/search/sorting#rule-1)
- **Moderate.** Keep the chosen order across pages and on Back. (https://uxreference.com/search/sorting#rule-6)

## The problem

People reorder a list to bring what matters to them to the top, and need to know which order they are looking at.

## How to decide

None. Fewer than three independent sources; no context-dependent choice is described.

## Every rule

Each rule has a grade: Settled (required by WCAG AA or law, or replicated research), Strong, Moderate, Weak, or Unsettled (use the stated default until the evidence settles).

#### Rule 1. Moderate

Always show which sort order is in force.

- Applies when: A list or table can be sorted.
- Based on: Practitioner research
- Principle: Keep people informed

Why: Baymard reports 30% of benchmarked sites used a placeholder that hid the current order; the APG example marks the sorted column. No measured effect.

Sources: [Essential sort types for product lists](https://baymard.com/research-articles/essential-sort-types); [Sortable Table Example](https://www.w3.org/WAI/ARIA/apg/patterns/table/examples/sortable-table/)

Link: https://uxreference.com/search/sorting#rule-1

#### Rule 2. Moderate, WCAG AA

Mark the sorted column and its direction in the markup, on that column only, and make each sortable header a button.

- Applies when: A table has sortable columns.
- Based on: Standard or law
- Principle: Work for everyone

Why: 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.

Sources: [Sortable Table Example](https://www.w3.org/WAI/ARIA/apg/patterns/table/examples/sortable-table/); [Understanding SC 4.1.2 Name, Role, Value](https://www.w3.org/WAI/WCAG22/Understanding/name-role-value.html)

Link: https://uxreference.com/search/sorting#rule-2

#### Rule 3. Weak

Offer the orders people ask for in that domain; for shopping lists that is price both ways, rating, best-selling and newest.

- Applies when: Choosing sort options.
- Based on: Practitioner research
- Principle: Keep people in control

Why: One practitioner source, sample not stated.

Sources: [Essential sort types for product lists](https://baymard.com/research-articles/essential-sort-types)

Link: https://uxreference.com/search/sorting#rule-3

#### Rule 4. Weak

Default to a relevance order that shows the range of what is there, not price or alphabetical.

- Applies when: Choosing the default order for a product category.
- Based on: Practitioner research
- Principle: Recognition over recall

Why: One source; no controlled comparison of defaults, and its thresholds are not validated.

Sources: [Default sort type for product lists](https://baymard.com/research-articles/default-sort-type)

Link: https://uxreference.com/search/sorting#rule-4

#### Rule 5. Weak

Do not use sorting as a stand-in for filtering; sorting reorders everything and removes nothing.

- Applies when: People want to narrow a list.
- Based on: Practitioner research
- Principle: Make controls match their effects

Why: Stated in two articles from one publisher.

Sources: [Essential sort types for product lists](https://baymard.com/research-articles/essential-sort-types); [5 Essential Filter Types Users Need on Product Listing Pages](https://baymard.com/blog/5-essential-filters)

Link: https://uxreference.com/search/sorting#rule-5

#### Rule 6. Moderate

Keep the chosen order across pages of the list and on Back.

- Applies when: The list is paged or the person leaves and returns.
- Based on: Practitioner research
- Principle: Be consistent

Why: Baymard reports 27% of benchmarked sites mishandled sort and filter on Back; Primer stores state in the address.

Sources: [4 Design Patterns That Violate 'Back' Button UX Expectations - 59% of Sites Get It Wrong](https://baymard.com/research-articles/back-button-expectations); [What Is an Ecommerce Filter? UI Best Practices](https://baymard.com/learn/ecommerce-filter-ui); [Filter scenario pattern](https://primer.style/product/scenario-patterns/filter)

Link: https://uxreference.com/search/sorting#rule-6

#### Rule 7. Unsettled

Whether a sort change needs its own announcement beyond the column state is unsettled.

Until the evidence settles, use this default: Rely on the column state and test with screen readers; add a status message if the change is not conveyed.

- Applies when: A table is re-sorted in place.
- Based on: Convention
- Principle: Work for everyone

Why: The APG example announces nothing beyond aria-sort and warns of support gaps. No testing found.

Sources: [Sortable Table Example](https://www.w3.org/WAI/ARIA/apg/patterns/table/examples/sortable-table/)

Link: https://uxreference.com/search/sorting#rule-7

## Accessibility requirements

- WCAG 4.1.2: the sort state must be exposed. (https://www.w3.org/WAI/WCAG22/Understanding/name-role-value.html)
- APG: aria-sort on the sorted column header only; sortable headers are buttons. (https://www.w3.org/WAI/ARIA/apg/patterns/table/examples/sortable-table/)

## Common mistakes

- A sort control whose label is "Sort by" and nothing else.
- Resetting the order when the person pages or goes Back.

## Still open

- What should the default order be? No controlled study opened.
- Do people confuse sorting with filtering? Asserted, not measured.
- No peer-reviewed study of sorting was found.

## Related problems

- [Faceted filters](https://uxreference.com/search/facets): Show the applied filters together, each one removable, and keep them in the page address.
- [Results pages](https://uxreference.com/search/results): Put the best match first, and make each summary say what the item really is.
- [Data tables](https://uxreference.com/content/tables): Use real tables with marked-up headers, and keep the identifying column first.
- [The back button](https://uxreference.com/navigation/back-button): Make Back return to the view people last saw, with their place and their input restored.

## Sources

- [Essential sort types for product lists](https://baymard.com/research-articles/essential-sort-types). Mark Crowley, Baymard Institute, 2021, large-scale usability testing (desktop and mobile) plus ecommerce benchmark; counts not stated.
- [Sortable Table Example](https://www.w3.org/WAI/ARIA/apg/patterns/table/examples/sortable-table/). W3C WAI ARIA Authoring Practices Guide (non-binding guidance, not a standard), 2025, component documentation and example code.
- [Understanding SC 4.1.2 Name, Role, Value](https://www.w3.org/WAI/WCAG22/Understanding/name-role-value.html). W3C WAI, 2026, normative standard (Understanding document).
- [Default sort type for product lists](https://baymard.com/research-articles/default-sort-type). Kathryn Reeves, Baymard Institute, 2021, observational usability testing, desktop and mobile, plus benchmark.
- [5 Essential Filter Types Users Need on Product Listing Pages](https://baymard.com/blog/5-essential-filters). Mark Crowley, Baymard Institute, 2020, large-scale usability testing plus 60-site benchmark (selection and participant counts not stated).
- [4 Design Patterns That Violate 'Back' Button UX Expectations - 59% of Sites Get It Wrong](https://baymard.com/research-articles/back-button-expectations). Christian Holst, Baymard Institute, 2020, large-scale usability testing and ecommerce site benchmark (counts not stated).
- [What Is an Ecommerce Filter? UI Best Practices](https://baymard.com/learn/ecommerce-filter-ui). Carl MacDonald, Baymard Institute, 2026, practitioner explainer drawing on Baymard usability testing and site benchmark (method not described on the page).
- [Filter scenario pattern](https://primer.style/product/scenario-patterns/filter). GitHub Primer, n.d., component and pattern documentation.

---
From Solved Problems in UX by Athen Pellicci, an evidence-graded reference of web interface problems. CC BY 4.0. https://uxreference.com/
