src/Modules/ModuleManager.php
protected function sortModules()
    {
        $this->modules = $this->modules->sortBy(function (ModuleInterface $module) {
            return $module->getName();
        });

        return $this;
    }
protected function sortModules()
    {
        $this->modules = $this->modules->sortBy(function (ModuleInterface $module) {
            return $module->getName();
        });

        return $this;
    }
protected function sortModules ( ) { $ this -> modules = $ this -> modules -> sortBy ( function ( ModuleInterface $ module ) { return $ module -> getName ( ) ; } ) ; return $ this ; }
Sorts the modules in an order that will suite the natural defaults
for their menu presence.

@return $this
Sorts the modules in an order that will suite the natural defaults for their menu presence .