FLEX-33835 Speed up sortLocalesByPreference