diff --git a/phpgwapi/inc/class.country.inc.php b/phpgwapi/inc/class.country.inc.php index 6672b9ea8b..6c909ce86b 100755 --- a/phpgwapi/inc/class.country.inc.php +++ b/phpgwapi/inc/class.country.inc.php @@ -456,6 +456,16 @@ class country $this->countries_translated[$k] = $translated; } } - asort($this->countries_translated); + + if(class_exists('Collator') && class_exists('Locale')) + { + $col = new \Collator($GLOBALS['egw_info']['user']['preferences']['common']['lang'].'_'. + $GLOBALS['egw_info']['user']['preferences']['common']['country']); + $col->asort($this->countries_translated); + } + else + { + asort($this->countries_translated); + } } }