From 0fc9c45d40d7cb5f03aebcaff08613c4a821d004 Mon Sep 17 00:00:00 2001 From: Samuel Vanhove Date: Thu, 9 Jan 2020 12:54:51 -0500 Subject: [PATCH] Country/Region PseudoConstant not sorted according to the locale --- CRM/Core/PseudoConstant.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/PseudoConstant.php b/CRM/Core/PseudoConstant.php index 14e2e7fcf2..792a334fe9 100644 --- a/CRM/Core/PseudoConstant.php +++ b/CRM/Core/PseudoConstant.php @@ -374,7 +374,7 @@ class CRM_Core_PseudoConstant { $i18n->localizeArray($output, $I18nParams); // Maintain sort by label if ($order == "ORDER BY %2") { - CRM_Utils_Array::asort($output); + $output = CRM_Utils_Array::asort($output); } } CRM_Utils_Hook::fieldOptions($entity, $fieldName, $output, $params); -- 2.25.1