X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FPseudoConstant.php;h=255594e4659fb8f5eaa5c1c91d5744c8f097a9b4;hb=817da8bd1bd161ef0bea82342972de2a090c84da;hp=99316fada86608698370556b9f7a43f4c35b90a8;hpb=8de7047a8762a15823f6bd10b94447d3d83937e2;p=civicrm-core.git diff --git a/CRM/Core/PseudoConstant.php b/CRM/Core/PseudoConstant.php index 99316fada8..255594e465 100644 --- a/CRM/Core/PseudoConstant.php +++ b/CRM/Core/PseudoConstant.php @@ -358,7 +358,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);