A visitor opens a garden catalog and wants to find the earliest flowering entry. There is a tiny arrow at the far edge of a column headed “First bloom.” It is possible to press the arrow, and the rows do move. But nobody has said whether the current order was early to late or late to early, what happens to records without a date, or whether pressing again will reverse the order. When the arrow is the only focusable element, its announced name may be no more useful than “button.” A sorting control can work technically while failing to let a reader predict what it does or identify what it just did.

A useful check follows three pieces of evidence together: what can be operated, what current order can be determined, and what order the records actually follow. A clean arrow can communicate direction visually; it cannot substitute for a programmatically exposed state. Conversely, a perfectly exposed state cannot rescue rows whose actual order disagrees with what the heading says. Sorting is a contract between a button, a representation of current state, and a particular rule for comparing values, including the values where ordinary comparisons are least obvious.
Give the reader a task, not an arrow hunt
Start by asking what the sorting feature is for. In a pollinator planting catalog, someone may want to find early bloomers, compare expected heights, or group entries by display name. The outcome might be the first few suitable records or a trustworthy relationship between two close values. The reader does not care whether the icon is an elegant triangle or a pair of carets. They need to find the intended column, operate its control, recognize current direction, and read the right resulting rows.
Give the button a name that identifies the column involved. “First bloom” works when it names an identifiable control in its heading and the table gives enough context that sorting is understood. If the control is visually separated or the surrounding design is ambiguous, a name such as “Sort by first bloom” can make its action more obvious. Keep the visible label in the accessible name when a visible text label is present. A voice control user may refer to those words directly. A name of “Sort” on every column leaves the reader guessing which button among several does the intended work.
Direction and action are distinct. A table currently sorted ascending might switch to descending when its active heading is pressed. If a button's spoken label only says “Sort descending,” it might describe the next action, while the visual icon describes the current state. Both can be true, yet presentation that does not distinguish them encourages the reader to interpret one as contradicting the other. Prefer a clear column name combined with separately conveyed current state. A brief instruction about how activating a header behaves can be given once rather than repeated in lengthy text on every button.
The W3C WAI tables tutorial provides the structural foundation: label headers and let cell associations communicate context. For the specific interactive pattern, the WAI Authoring Practices Guide sortable table example puts native buttons inside the sortable headings and uses the active column's header for the sort state. Its example is illustrative, not a promise of identical results in every browser and assistive technology pairing. Use the pattern as a starting point and verify the behavior users actually encounter.
Not every header needs an interactive control. A Notes column could have no coherent ordering or add little value. Mark it as a normal header with a useful name, not an inactive duplicate of the sorting buttons. Visually distinguish columns with an available but inactive sort from columns that do not sort at all. The reader should not have to test every cell to distinguish available actions from decoration.
Treat the current state as a claim you can verify
With the ordinary single-column pattern, the attribute aria-sort belongs on the header for the currently sorted column, not on the inner arrow, data cell, or sorting button. When another column takes over, move the active state to that header and remove the previous active state. Use ascending or descending when those represent the actual order. The WAI-ARIA specification for aria-sort defines its set of values, including other for an ordering not described by those two directions. It directs authors to apply the sort indication to only one header at a time. Do not treat other as an excuse to omit an explanation of a specialized order.
The initial view deserves the same attention as a state reached after interaction. If the app is actually presenting a default order by first bloom ascending, the visual and semantic state should express that when the page first opens. If no column is active because the list is initially in an editorial order, do not announce a direction for a sortable column just because an icon is drawn nearby. It can be helpful to state “Featured order” if readers need to distinguish it from a column sorting state. That state also needs a defined route back if the product offers a reset.
The application should keep the logical row order aligned with the displayed order. Moving cells visually through layout without updating their reading sequence may let one user see the earliest row first while another encounters it last. Verify traversal of the sorted data instead of assuming that a screen reader will follow a visual transform. Preserve complete rows as units: each plant name, date, measurement, and associated link should travel together. An apparent ascending list is not correct if the values have sorted independently of their records.
Sometimes an app loads results asynchronously. Until a requested order is ready, do not announce it as completed. Indicate a meaningful pending state if the work may take noticeable time, then expose the new order when it is applied. If a later request supersedes an earlier one, an old response must not quietly replace the newer selection. Test by choosing a second heading quickly under delayed conditions. A synchronized icon, state attribute, and result order should all describe the same fulfilled request.
Do not assume that state exposed in markup will always be spoken immediately upon change. Announcement details depend on the browser, screen reader, mode and focus. Ask whether a reader can discover the state by navigating back to or interrogating the column title, as well as whether a change receives immediate notice in the tested environment. If a separate status message is useful, keep it concise and avoid duplicate chatter. A persistent discoverable state and a brief update serve different tasks. Confirm they work together rather than adding announcements simply because an automated checker did not flag the component.
The data rule should be as explicit as the interaction
Decide what ascending means for each column. A title column may use locale-appropriate ordering. A numeric height column should normally compare the underlying numeric values after unit normalization. A month-only bloom column might compare the months in calendar sequence rather than alphabetically, provided that matches the product's description. A list that shows abbreviated month names cannot infer its own intended order. If instead the designer wants a biological season running from late autumn through summer, label that custom order plainly rather than calling it earliest without a reference point.
A compact fixture should expose errors that a pretty demonstration hides. Put in two named entries with bloom dates in March, separate entries starting in February and October, and one with no date. Use heights whose text would sort differently from their numbers, such as 8 and 120 centimeters. Include recognizable names so a reviewer can confirm values traveled with the correct rows. Have the expected orders written down before testing. The test should not pass merely because the screenshot changes.
Choose a tie rule. A stable sort can preserve the relative sequence of ties supplied to that sort, which might be the result of a previous operation. A declared secondary key, such as name with a stable identifier as the final tie breaker, gives repeatable ordering even when arriving from another state. Both can be valid. They answer different expectations when readers switch columns and return. If navigation or pagination depends on recovering the same first page of results, specify a deterministic total ordering rather than assuming any implementation of ties will be sufficiently predictable.
There is no universal rule that descending should invert every aspect of the rendered list. A product may reverse the primary ordering while keeping alphabetical names within ties, or it may reverse both. Likewise empty values can remain last in both directions. Put those rules where readers can understand a surprising case. A report of “descending failed” is too vague if the actual behavior was a deliberately unchanged tie order. The test should compare the code's output with the product's stated order rather than worshiping one visual symmetry.
Handle missing entries as missing. A plant with no recorded first-bloom month does not start flowering on January 1, and a blank height is not zero centimeters. A value estimated from a source may be distinct from a value that was never reported. Decide whether different missing categories are grouped together and how to label them. A separate policy might place unknowns after known values in either direction. Provide a readable cell label such as “Not recorded” if a bare dash would be ambiguous. The interface should communicate the rule without assigning false numeric values.
The same care applies to formatted ranges. A catalog might display “May to July” while sorting by start, end, duration, or a representative month. Readers cannot infer which key is used from the display alone. If the column heading is “First bloom,” then a separate start key is reasonable, but it must represent what the source actually supplies. A record saying “spring” should not silently become a precise day simply to participate in a sort. Offer a sensible category, explain how coarser entries are placed, or treat those entries as unknown for that particular key.
Sorting states not distinguishable
The chart and table below use invented counts from the same ten fictional test cases at three checkpoints. The unit is items, meaning individual audit scenarios for which the current sorting state could not be distinguished as intended. These are not observed product results, user performance figures, or a WCAG conformance score. The targeted revision resolves nine of the ten cases; the reviewed version resolves the remaining one. The repeated checkpoints do not represent three separate samples.
| Audit checkpoint | Items |
|---|---|
| Initial draft | 10 |
| Targeted revision | 1 |
| Reviewed version | 0 |
One way to define the fixed list is to test initial ascending state, initial editorial order with no active sort, reversal on the active column, moving to a new column, focus after activation, the ordering of ties, placement of missing entries, readiness during an asynchronous request, filter and page interactions, and distinguishability in a narrow layout. Before comparing counts, define which aspects of those scenarios make a state distinguishable: an identifiable control, clear current order, logical and visual row consistency, and an interpretable response where applicable. More general defects should be recorded separately rather than squeezed into this particular audit metric.
Nine fewer unresolved cases after the first pass is not a population percentage. The ten are deliberately chosen distinct scenarios, not a sample of all users or a weighted survey of assistive technologies. A zero at the third checkpoint would say only that the ten known scenarios passed their stated narrow checks in this invented survey. Changed software, expanded coverage and additional interactions can expose more issues. A team should keep the check list and scenario criteria with the chart so the decline does not look like a mysterious accessibility score.
The article's brass arrows and blank cards are editorial illustration. The picture is not a rendering of the catalog, and there is no production control to evaluate from its layout. Keep the chart's instructional role separate from the illustration. The useful evidence for an actual release would be what someone can operate and determine in the tested interface, not what a carefully composed arrow looks like beside the article.
Follow the same task with a keyboard, then read the result
Begin on a fresh load, without starting from a pointer interaction. Navigate to the first available sort button, identify which column it controls, and try a normal keyboard activation. A native button provides conventional behavior without reimplementing it: both Enter and Space need consideration in a manual test. The app should not require a mouse hover to reveal an essential instruction or create a hidden duplicate focus stop for the arrow. Record the visible focus indication as well as whether the action actually happened. A focus ring that appears only after sorting does not help a user find the control on the approach.
Check what becomes focused when the rows update. The intuitive expectation in a straightforward table is that activating the heading does not eject the user to the beginning of the page or into an unrelated row. If the header gets destroyed and rebuilt by the update, the resulting loss of focus is a real failure even if a screenshot shows the correct order. Test two consecutive activations without navigating away. This small task catches a component that happens to succeed once but makes it difficult to reverse its own action. Also test moving to a different column without losing the user's place.
Next, move from the active heading into the data using the reading method appropriate for the environment. Determine not only whether an announcement arrived, but also whether the result is usable after that announcement. Inspect the first few rows, the pair with equal values, and the unknown row. The same workflow can be applied by a keyboard user who reads visually and a screen reader user who navigates by table cells. The point is not that their commands and immediate feedback must be identical. It is that each can complete the task and recover the current order.
The WCAG 2.2 recommendation supplies applicable criteria to evaluate in context: keyboard operation, visible focus, not relying on color alone, and programmatically determinable names, roles and values. The criterion about status messages may also apply when the interface supplies such messages without moving focus. The presence of a native button or a correctly spelled state attribute is not a promise of conformance. A targeted test should state which criteria were checked, which tasks were attempted, and where evidence remains limited.
Try a deliberately ordinary recovery task after sorting: leave the table, go to a related filter, and return. Can the user determine whether the earlier order is still applied without executing the command again? Immediate feedback at the point of change may be helpful but it does not solve rediscovery. A state that remains available in context is especially important after a user shifts attention to related controls. Write the finding in terms of the task: the current sort could be recovered on returning to the table, or it could not.
Use a fixture reviewers can reason through by hand
A useful five-row fixture might begin in a deliberately unsorted editorial sequence. Imagine Fern, Aster, Basil, Dahlia and Clover in that order. Fern has an October start, Aster and Basil both have March starts, Dahlia has no recorded start, and Clover starts in February. The policy for this fictional table is to sort by calendar month, then sort ties alphabetically by name in both directions, with missing entries last. The expected ascending order is Clover, Aster, Basil, Fern, Dahlia. Descending is Fern, Aster, Basil, Clover, Dahlia. Aster and Basil do not reverse with the month key because the secondary rule stays alphabetical.
Keep the data key and display copy separate in the fixture. The date may appear as three letters, a full month name, or a translated label. None of those automatically describes the comparison rule. A numeric field can display units, rounded values, or ranges. A visual equality created by rounding may conceal an underlying difference, and a stable comparator can produce surprising output without being mathematically wrong. Decide whether the ordering should track the precise source value or the displayed precision. If a difference that affects sorting is invisible, consider showing enough precision or explaining that the underlying values differ.
Add a duplicate display name if the real catalog permits one. A reviewer should be able to track the distinct records with another stable identifier or an associated field. If the name is the secondary key, two records could share both displayed name and primary value. Without a final determinizing key, the order might vary across pages, requests, or implementations. Do not expose opaque identifiers only to solve the internal comparator. Keep the identity reliable for the app and communicate meaningful distinctions when the reader needs them to select the right entry.
Add a row with a value that is truly not applicable as well as a row whose value was not recorded if those states occur. The heading “First bloom” might not apply to a teaching record for a nonflowering plant, while another entry lacks a date despite being a flowering plant. Treating them as one sortable after-group may be reasonable, but the cells should not erase the difference if it is relevant. The test should confirm both placement and label. Readers should not be left to infer from a silent dash that the same reason applies to both rows.
Test display and traversal for the entire fixture, not only the item at the top. Correct extremes can coexist with incorrect ties, misplaced unknowns and detached annotations in the middle. A one-line screenshot of the arrow and first row has little diagnostic value for those failures. Record the expected and observed sequence of stable row identifiers, then read how users encounter that sequence. Test whether row-level actions or links still refer to their own records after reordering. A table with correct printed values and a wrong link would not support the original catalog task.
Include filters, pagination and sort requests in one story
If the catalog is paginated, state whether the feature sorts the entire filtered result set or merely the rows on screen. Most catalog readers expecting the earliest bloom want a result across the full selection. A sort that just rearranges the current page can yield an internally ordered page while hiding earlier entries on later pages. If current-page sorting is intentional, name its scope where the feature is offered. If global sorting is intended, verify that the first and second page together follow the same ordering.
A natural test begins with duplicate keys near a page boundary. Sort, advance, and return. A weak tie rule can cause records to recur on two pages or disappear if the backend returns equal values in different orders on separate requests. An explicit stable key can prevent that drift for a fixed dataset. Updates to the collection may still change page membership, so distinguish instability under identical data from legitimate change in data version. The evaluation should not treat every change in the result list as a sort bug without checking its source.
Next apply a filter that removes the current first row, then clear it. Does the filter preserve the intended sort order of retained rows, or does it reset to a declared default? Either can be a product decision, but the active heading, announced state and visible result should agree. The test should include a filter returning no rows, because the application may accidentally clear its state without updating the control. A table showing no matches can still tell a user which sort will apply after results return if the feature retains it.
Consider asynchronous errors as separate states. If requesting a new order fails and the previous order remains, it should not inherit the new state. A brief failure message and a recoverable action can be useful. If the page updates only part of its contents successfully, the team needs a state model that can say which result is current rather than show an arrow from the last click and rows from the last successful request. Test a delayed response, an error, and rapid toggling so the developer sees whether semantics and result order remain coherent under common disruption.
Deep links and saved preferences introduce a similar agreement problem. If the catalog restores the most recent sort when reopened, load the semantic and visual state along with the result. If the application shows default rows while a saved order is being requested, do not label the first rows as already sorted by that saved choice. Likewise, a control to restore the original order should restore the associated state or remove the column indicator when no active sort remains. Test a fresh session and one with a saved preference rather than demonstrating only the state encountered by the developer.
Check the places where a usable feature can disappear
At a narrow width, a designer may replace a labeled header with a glyph or move a sort control above a horizontally scrolling table. The shorter interface still needs a discoverable action and a discoverable current state. If controls move, test the narrow version from the start rather than assuming that the names and focus flow from the wide version survived. A sticky overlay can cover a focused button even when it technically receives focus. A pointer action on a tiny icon might demand more precision than the rest of the header. Ordinary enlargement and narrow viewport checks can reveal these problems without requiring a special demo.
An alternative compact layout could use a single labeled sort chooser outside the table. If it is the only control, its options should identify the key and direction clearly. Ensure the active sort is also apparent when the reader reaches the table, especially if the chooser is far above the rows. If duplicate controls exist in two layouts, make sure the inactive layout is not still keyboard focusable or exposed as another working copy. A common responsive failure is styling one control out of view without removing the unexpected stop from navigation.
Inspect high contrast and states without color cues. A subtle change from gray arrow to blue arrow may be elegant on the designer's monitor but fail to distinguish inactive, ascending, and descending states for some users. Shape and orientation can help; accompanying text or an explicit current-order indication can make the distinction more robust. Do not let decorative symbols contribute repetitive text to the accessible name of every header. The relevant state should be available through the semantics and necessary text even if an individual icon is conceptually ornamental.
Focus management should follow the experience, not the desire to force an announcement. Moving focus into the first cell after every activation can unexpectedly interrupt the user's plan to reverse the order or select another column. Leaving focus on the button and making results discoverable may be better for a simple in-place sort. If a different design intentionally takes users elsewhere, explain the action beforehand and test typical recovery. Focus, feedback and navigation should not fight one another merely because a single test wanted immediate spoken confirmation.
If horizontal scrolling is necessary to reach some columns, evaluate how users get there and what column context remains understandable. This is not a request to turn the table into a grid of one hundred keyboard stops. A native table with sortable header buttons can retain appropriate data reading behavior. If a more advanced grid is chosen for genuine interaction needs, the team should justify that choice, document the different navigation pattern and test it accordingly. Adding grid roles just to hold an arrow may complicate the tasks the ordinary table already handled.
Record expected behavior before recording the result
For each scenario, document the starting order, the available actions, the action taken, and the expected order, name, focus and state after the action. Use actual data containing enough variation to distinguish the states. A date column in which every row has the same date cannot show whether ascending and descending were implemented correctly. A blank results set is useful for testing retained controls, not for demonstrating the comparison rule. A good scenario makes at least one visible or programmatically determinable difference you can actually inspect.
Then write the observation in the terms the reader experienced. “Button name identified First bloom; after Space the arrow pointed upward but the active header still exposed descending” is more actionable than “screen reader weird.” A pointer check might report that only the tiny arrow was clickable despite a large surrounding focusable outline. Include the interaction conditions, and record the first few and relevant boundary rows that establish the result. If the issue occurs when a request is slow, keep a note about the order in which actions and responses happened.
Different tools reveal different evidence. A DOM inspection can establish which element holds the state and whether multiple headings claim to be active. A keyboard check can reveal a lost focus point. A screen reader test can reveal how the role, name and state reach a user working through the table. A visual check can identify an icon that disappears against a sticky background. No single one substantiates all four claims. An automated test can usefully check structural or ordering invariants while a manual test covers actual navigation and interpretation.
When a spoken result differs across supported environments, avoid trying to make the utterance identical everywhere. Find out whether the control and active state are exposed in standard ways and whether readers can recover them in their normal workflow. Sometimes redundant live updates make one combination verbose without improving access in another. Sometimes a clear supplementary text summary helps both. State the environments checked and the evidence about the task, not a broad assurance that every reader will hear a particular phrase.
Know what a targeted repair resolved and what remains open
Suppose the initial audit found that the icon is the accessible name, the active column lacks a programmatic state, and the data put unknown dates in January. A single visual fix cannot resolve all three. Give the name issue to whoever controls the header markup, the active-state issue to whoever synchronizes it with the sort state, and the data issue to whoever owns the comparison rule. That division is practical, not bureaucratic. It makes clear which test should be repeated when each repair lands and why a changed arrow is not evidence of correctness elsewhere.
Test one error that can survive an otherwise good repair: the code sets ascending on First bloom and later sets descending on Height without removing the old indication. Two headers now claim to be the active key. Visual styling might show only the most recent choice, so the defect may be hard to notice without measuring programmatic state. On every requested transition, check that the single-column constraint still holds. If a product intentionally supports compound ordering, communicate the priority of the keys in a different clear way rather than relying on several independent arrows to explain it.
Another possible remaining issue is a state update that is correct when keyboard focus stays, but impossible to find on returning to the table. A note in a volatile toast may disappear before a visitor reads the rows. Keep the active order available at the point where it matters, and use an immediate status update only to complement it. A person entering the table after someone else changed the sort deserves context too. The responsibility for state information does not end when the action succeeds.
Finally, distinguish regression coverage from release claims. The ten fictional scenarios can become a useful core checklist, but a change to column labels, data formatting, rendering framework, pagination order, or mobile presentation can introduce a new path. Preserve the assumptions that made the fixture useful. Revisit the test when the product introduces new sort semantics such as multiple keys or a custom seasonal order. An honest test record can say that specific interactions passed without pretending the entire catalog has been certified.
Sometimes the remaining regression is in the export or print view rather than the live table. An exported list may have a different default order, carry the order chosen on screen, or omit all active indicators because it is no longer interactive. No sort button is needed in a static export, but a line naming the ordering can be useful when the choice changes the document's purpose. If an export promises to preserve the visible selection, verify it against the filtered and sorted result, not against the unsorted source alone.
Collation also deserves a fixture targeted to the intended readership. If a table combines display names from several languages, case and accents can be handled differently according to the comparison convention chosen. Do not announce alphabetic order while silently sorting by an internal identifier. Establish the convention and keep related labels consistent when the interface language changes. A test with only simple English examples cannot detect these differences, even when it checks every arrow.
A recheck should use a fresh environment as well as the state left behind by the repair. Clearing a saved selection may reveal a default direction the repair never touched. Opening a saved URL may exercise the opposite risk: the right default is announced before the restored state becomes visible. These are not obscure corner cases for someone who relies on catalog links shared by other people. Record both paths explicitly.
A short handoff for a new catalog editor
Keep the example fixture with its expected order in both directions. A reviewer should not have to infer which of two equal rows the team meant to place first.
Share the column definitions and expected sequence for one fixture, along with plain-language rules for ties, unknowns and resets. Add which user-facing controls exist at each display size and where their active state can be found. Record whether sorting applies to all results or only the visible page. New editors are often the first to add ranges, approximate values and exceptional entries. They can avoid breaking data order if they know the comparison rule before supplying content rather than after discovering a record floating to the top.
Do not bury the details about data limitations in a technical note if they change how a reader might choose a plant. A sorting hint can be concise: “First bloom uses the earliest recorded month; entries with no month appear last.” That statement gives meaning both to the ordering and to a record that falls outside it. If a catalog contains approximate intervals, tell the reader that the sort uses the designated start value and does not promise actual conditions in their garden. The sorting interface should not create confidence in data precision that the record itself does not possess.
A sort arrow earns its place only when the heading is recognizable, the current direction is discoverable, and the order agrees with the promise. Show how ties and unknowns behave. Save a test with exact expectations and rerun it from another input mode before calling it fixed. The result should be a catalog a person can operate and interpret, not simply a screenshot in which a small symbol finally points upward.