Skip to content

Commit

Permalink
Country/Region PseudoConstant not sorted according to the locale
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelsov committed Jan 9, 2020
1 parent 6698aea commit 0fc9c45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Core/PseudoConstant.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0fc9c45

Please sign in to comment.