Sort plugins in pluginmenu alphabetically (name)

This commit is contained in:
Max Klaversma 2014-05-01 14:41:07 +02:00 committed by Steffen Schröder
parent 4f4f46c56f
commit e6fbe15933

View File

@ -244,6 +244,10 @@ class PluginMenu implements CallbackListener, ConfiguratorMenu, ManialinkPageAns
$y = 0.;
$pluginUpdates = $this->maniaControl->updateManager->getPluginsUpdates();
usort($pluginClasses, function($a, $b) {
return strcmp($a::getName(), $b::getName());
});
foreach($pluginClasses as $index => $pluginClass) {
/** @var Plugin $pluginClass */
if (!isset($pageFrame)) {