Skip to content

Commit

Permalink
MDL-70459 enrol_fee: Sort the list of currencies when displaying
Browse files Browse the repository at this point in the history
  • Loading branch information
rezaies committed Dec 16, 2020
1 parent ec6720a commit 5f57b10
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions enrol/fee/classes/plugin.php
Expand Up @@ -45,6 +45,10 @@ public function get_possible_currencies(): array {
$currencies[$c] = new lang_string($c, 'core_currencies');
}

uasort($currencies, function($a, $b) {
return strcmp($a, $b);
});

return $currencies;
}

Expand Down

0 comments on commit 5f57b10

Please sign in to comment.