top of page

Why Does an Alphabetical List Change Order Across Languages?

Oct 23
3 min read
Define Locale-Sensitive Sorting for Business Lists: Choose the locale; Define equal-value ties; Compare page and export.

A directory looks alphabetical to one reviewer and out of order to another. Both may be applying familiar rules from different languages. Sorting is a product decision about how readers find information, not simply an instruction to place character codes in ascending order.


For a multilingual collaboration service, document the intended behavior before replacing the sort function. Otherwise the page, export and database query may each appear correct while disagreeing with one another.


Name the sorting context


MDN's Intl.Collator reference describes language-sensitive string comparison. Its examples show that the same characters can sort differently under German and Swedish locale rules.


Choose whether a list follows the interface language, an organization's fixed convention or another explicit context. Do not silently assume the server's default locale represents the reader's expectations.


Record how case, accents and embedded numbers should be treated. A list of people and a list of versioned files may need different behavior. Preserve the original display values; sorting does not require rewriting names to resemble one language.


Make equal comparisons deterministic


Two distinct values can compare as equivalent under the chosen settings. The list still needs a stable way to order the records if pagination or reproducible exports depend on that order.


Define a secondary key, such as a stable record identifier, with the implementer. Keep that key invisible when it has no reader value. Its purpose is to make ties predictable, not to imply that one person or project has higher priority.


Use the same sorting contract wherever the complete list is produced. Sorting only the current page in the browser can create an alphabetical-looking page inside a globally unordered result set.


Illustrative example: a contributor directory


A fictional directory supports German and Swedish interfaces. The test fixture includes names beginning with ordinary and accented letters, mixed case, identical display names and names containing multiple scripts.


Reviewers agree on the locale-specific order using the supported runtime. They also verify that two identical display names remain in a consistent order across repeated requests. The fixture tests behavior; it does not rank contributors or infer their nationality.


Check the complete browsing path


Test the first page, the boundary between pages, the final page and the exported file. Confirm that changing the language updates ordering according to the contract while preserving the selected record.


Include a browser refresh and a shared link. If the sort choice is encoded in the link or saved preference, verify that another visit restores it. If the exported file uses a fixed organization convention, state that convention near the export action.


Ask what happens when a requested locale is unsupported. MDN documents ways to inspect supported locales and resolved options. Record the actual fallback rather than assuming the requested option was used unchanged.


Keep sorting separate from matching


A search comparison, duplicate-detection rule and display sort solve different problems. Two strings being treated as close for browsing does not establish that they identify the same person.


Use this acceptance checklist:


  • The sorting locale and relevant options are explicit.

  • Original names and labels remain unchanged.

  • Representative readers can find known entries.

  • Ties have a stable secondary order.

  • Pagination and exports follow the documented contract.

  • Unsupported locale behavior is visible in the test record.


When the rule changes, retain before-and-after examples and review saved positions or pagination tokens that may depend on it. A well-defined sort helps readers navigate without quietly changing the identity or meaning of the records.


Continue with Why Two Identical-Looking Names May Not Match in Search for the related planning decision.


FutureOS is in prelaunch. Use this guide to prepare a concrete project discussion; the published introduction describes the current project context.



Prepared with AI assistance. Primary sources checked on October 23, 2026. Examples and procedures are illustrative editorial guidance, not FutureOS product announcements or an independently reviewed assessment.

Recent Posts

See All

Comments


bottom of page