Merge branch 'MDL-60949_master' of git://github.com/dmonllao/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2019-07-09 00:52:49 +02:00
commit 33b511bbc7

View File

@ -143,6 +143,10 @@ class manager {
$models[$modelobj->id] = $model;
}
}
// Sort the models by the model name using the current session language.
\core_collator::asort_objects_by_method($models, 'get_name');
return $models;
}