Skip to content

Commit

Permalink
Merge pull request #16258 from samuelsov/i18ncountriesorder
Browse files Browse the repository at this point in the history
Country/State PseudoConstant not sorted according to the locale
  • Loading branch information
eileenmcnaughton authored Jan 9, 2020
2 parents f7ed7c9 + 0fc9c45 commit 1d94337
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 @@ -358,7 +358,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 1d94337

Please sign in to comment.