---
title: "Verify localized sorting stays stable across pages"
description: "Check a localized directory sort with accented names and pagination, comparing the complete ordered identifier sequence with the product collation fixture."
canonical_url: "https://vostride.com/agent-library/localization/localized-sort-and-pagination.md"
md_url: "https://vostride.com/agent-library/localization/localized-sort-and-pagination.md"
content_kind: "recipe"
topic: "localization"
---

# Verify localized sorting stays stable across pages

Check a localized directory sort with accented names and pagination, comparing the complete ordered identifier sequence with the product collation fixture.

## Risk

Client and server collation can disagree at page boundaries, causing missing or duplicate records. The expected order must come from an approved product fixture rather than the same database query under test.

## Fixtures

- An owned sandbox directory with enough synthetic names to span three pages, including accented letters and same-prefix names.
- A supported locale and an independently approved ordered identifier manifest based on the product collation requirement.
- A read-only directory count oracle and a page size fixed by the sandbox fixture so boundary positions are reproducible.

## Steps

1. Select the documented ascending name sort and verify the locale indicator and first-page identifiers match the beginning of the approved manifest.
2. Move to the second page and verify its identifiers continue the expected sequence without repeating the previous boundary record.
3. Open the final page and verify its remaining identifiers and total count, including the names that distinguish this locale collation.
4. Navigate backward to the first page and verify the same order remains stable without an unintended reset to default sorting.
5. Compare the concatenated identifier sequence with the independent manifest and verify every fixture record appears exactly once across all pages.

## Expected results

- The complete order follows the approved locale collation rather than a default code-point order.
- Page boundaries contain neither missing nor repeated identifiers.
- Backward navigation retains the chosen sort and reproducible page contents.

## False-pass traps

- Checking only the first page misses collation disagreements at cursor boundaries.
- Using the application response to generate the expected order makes the oracle circular.

## Cleanup

- Restore the directory sort preference and remove the synthetic names if they are run-specific.

## Use with agent-qa

Adapt this test design to your application's acceptance criteria and configured target using the [recipe execution guide](/agent-library/software-factory/turn-a-recipe-into-an-agent-qa-test.md). External fixture setup and non-UI checks require your own supported hooks or test tooling. Validate the authored test, execute it, and inspect the completed evidence; this recipe is not a recorded test result.

## References

- [agent-qa first test](/docs/agent-qa/guides/first-test.md)
- [agent-qa hooks](/docs/agent-qa/guides/hooks.md)
- [agent-qa test](/docs/agent-qa/configuration/test.md)

- [Localization QA recipes](/agent-library/localization.md)
- [Software factory QA library](/agent-library.md)
