Page MenuHomePhabricator

Sort the language response after the search
Open, Needs TriagePublic

Assigned To
None
Authored By
hueitan
Mar 23 2026, 1:30 PM
Referenced Files
F73624809: image.png
Mar 25 2026, 6:44 AM
F73531786: image.png
Mar 23 2026, 1:30 PM
Subscribers

Description

When search for "hi", the order is not the same as previous (hi should come before zh)

in jquery.uls.lcd.js https://github.com/wikimedia/mediawiki-extensions-UniversalLanguageSelector/blob/226fec5edd18292c5781ee72e7d0093ab1aac34e/lib/jquery.uls/src/jquery.uls.lcd.js#L367-L368

use $.uls.data.sortByScriptGroup (with region) and $.uls.data.sortByAutonym

investigate and implement the same in mediawiki.languageselector

image.png (422×453 px, 63 KB)

Event Timeline

Note: when searching on the language selector (single select), the list response as the following which i think in the correct order

image.png (1×1 px, 101 KB)