sortOptions and sortNestedOptions are not UTF8 safe

Created on 21 September 2023, 12 months ago
Updated 24 April 2024, 5 months ago

Problem/Motivation

When having a list of options that have non English characters, and clicking on Advanced filter options > Sort filter options to sort alphabetically, it just adds the special characters at the end instead of transliterate them.

For example the right order for these three countries in French is:

Érythrée
Estonie
Éthiopie

But enabling the sort filter option will list them as:

Estonie
Érythrée
Éthiopie

Proposed resolution

Instead of asort in the sort option methods, use uasort with transliteration.

🐛 Bug report
Status

Fixed

Version

6.0

Component

Code

Created by

🇪🇸Spain pcambra Spain, 🇪🇺

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024