MDL-70459 enrol_fee: Sort the list of currencies when displaying

This commit is contained in:
Shamim Rezaie 2020-12-16 22:26:44 +11:00
parent 9f4a7c6da1
commit 22dfcb1029

View File

@ -45,6 +45,10 @@ class enrol_fee_plugin extends enrol_plugin {
$currencies[$c] = new lang_string($c, 'core_currencies');
}
uasort($currencies, function($a, $b) {
return strcmp($a, $b);
});
return $currencies;
}