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

        return $this;
    }