mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-70459 enrol_fee: Sort the list of currencies when displaying
This commit is contained in:
parent
9f4a7c6da1
commit
22dfcb1029
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user