Page MenuHomePhabricator

Consider sorting countries alphabetically in the country selection dropdown
Closed, ResolvedPublic

Description

The country selection dropdowns in Special:EnableEventRegistration (and Edit) and Special:AllEvents are sorted alphabetically by country code. I think we should sort them by display name instead, as that makes it easier to find entries in any language.

Event Timeline

Change #1175160 had a related patch set uploaded (by Daimona Eaytoy; author: Daimona Eaytoy):

[mediawiki/extensions/CampaignEvents@master] Alphasort country names in Special:AllEvents and registration form

https://gerrit.wikimedia.org/r/1175160

Change #1175160 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Alphasort country names in Special:AllEvents and registration form

https://gerrit.wikimedia.org/r/1175160

vaughnwalters subscribed.
Bénin in incorrect placeCôte d'Ivoire in incorrect place
Screenshot 2025-08-04 at 3.27.14 PM.png (782×886 px, 90 KB)
Screenshot 2025-08-04 at 3.21.48 PM.png (260×346 px, 17 KB)

We need to take into account diacritics also - right now if a letter has a diacritic it is put after all letters without diacritics. So in the above examples (using French) Bénin should go after Belize, and Côte d'Ivoire should go after Costa Rica, etc.

We need to take into account diacritics also - right now if a letter has a diacritic it is put after all letters without diacritics. So in the above examples (using French) Bénin should go after Belize, and Côte d'Ivoire should go after Costa Rica, etc.

I think this is a valid concern, but should be filed as a separate task, as it most likely also affects topics etc.

(Example of the same issue elsewhere: T391230#10992632)

We need to take into account diacritics also - right now if a letter has a diacritic it is put after all letters without diacritics. So in the above examples (using French) Bénin should go after Belize, and Côte d'Ivoire should go after Costa Rica, etc.

I think this is a valid concern, but should be filed as a separate task, as it most likely also affects topics etc.

Okay thanks, I created a follow up task here T401214 and am moving this to product sign off.

ifried subscribed.

Thanks for the filing the follow-up task, @vaughnwalters!