diff --git a/CRM/Core/PseudoConstant.php b/CRM/Core/PseudoConstant.php index 14e2e7fcf220..792a334fe95e 100644 --- a/CRM/Core/PseudoConstant.php +++ b/CRM/Core/PseudoConstant.php @@ -374,7 +374,7 @@ public static function get($daoName, $fieldName, $params = [], $context = NULL) $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);