1.6 KiB
Discovery title order follows UI language
10 November 2026. Baseline aac0f3b3a9b452b48126ddaf26e1837eeadd2f6d, branch codex/i18n-discovery-order.
The title sort used the browser's default collation and its memo omitted the UI language. Switching English to Bokmål left Å-prefixed titles before Z. The focused regression reproduced this on the unchanged baseline.
JobDiscoveryPage now passes its existing English/Bokmål display locale to localeCompare and includes that locale in the memo dependencies. The same locale still formats recorded timestamps. The change reaches ordinary and saved-search result arrays through their shared title sort.
The regression switches English → Bokmål → English with Å/Z fixtures, verifies each order, and checks that the role, municipality and title sort remain selected. Switching adds zero API reads and triggers no writes. Existing submitted search and provider contracts are retained.
24 tests in job-discovery.test.tsx, TypeScript without emit and ESLint on the two changed files passed. The initial red run selected one test and skipped the other 23. It is retained separately from the final suite result in evidence/discovery-title-order/.
Export build, rendered browser, native language/device and live-provider verification were not run in this isolated increment. Existing whole-application, European locale and final acceptance gates remain open. The root integration owner will review and publish this branch separately.
Rollback is the inverse of the two source/test changes. There are no schema, dependency or persisted-data changes.