Issue Task Resolved

#111310Replace deprecated SORT_LOCALE_STRING flag

Wouter Wolters 11/01/26, 12:50 updated 11/05/26, 12:00

Description

PHP 8.6 deprecates SORT_LOCALE_STRING. Use explicit SORT_STRING for
sortByOptionLabel in the select and country-select ViewHelpers.
Preserve option keys and prioritized countries.

Frontend routing sets LC_COLLATE from the site language. Installations
using a non-C collation can therefore change their option order with
this replacement, even without custom setlocale() calls.

Tests cover string comparison of numeric and mixed-case labels, as
well as non-ASCII country names, country codes and priorities.

Reviews 3

History 29

  1. Stefan Bürk commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-11-04T20:35:18+00:00" > 11/04/26, 20:35 </span>

    Applied in changeset commit:317f671ab200d671348c634dec0ad7bc7089ab53.

  2. Gerrit Code Review pushed patch set 2 for 14.3 to change 97346 status Resolved Under Review <span data-processor="relativetime" data-value="2026-11-05T09:13:27+00:00" > 11/05/26, 09:13 </span>

  3. Stefan Bürk commented and changed status Under Review Resolved <span data-processor="relativetime" data-value="2026-11-05T12:00:16+00:00" > 11/05/26, 12:00 </span>

    Applied in changeset commit:45140b6da36a0e811e1688b51a5f3bd028927c19.