Sort plugins in pluginmenu alphabetically (name)
This commit is contained in:
parent
4f4f46c56f
commit
e6fbe15933
@ -244,6 +244,10 @@ class PluginMenu implements CallbackListener, ConfiguratorMenu, ManialinkPageAns
|
|||||||
$y = 0.;
|
$y = 0.;
|
||||||
$pluginUpdates = $this->maniaControl->updateManager->getPluginsUpdates();
|
$pluginUpdates = $this->maniaControl->updateManager->getPluginsUpdates();
|
||||||
|
|
||||||
|
usort($pluginClasses, function($a, $b) {
|
||||||
|
return strcmp($a::getName(), $b::getName());
|
||||||
|
});
|
||||||
|
|
||||||
foreach($pluginClasses as $index => $pluginClass) {
|
foreach($pluginClasses as $index => $pluginClass) {
|
||||||
/** @var Plugin $pluginClass */
|
/** @var Plugin $pluginClass */
|
||||||
if (!isset($pageFrame)) {
|
if (!isset($pageFrame)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user