app/Services/ModuleService.php
private function footerSorter(): Closure
    {
        return static function (ModuleFooterInterface $x, ModuleFooterInterface $y): int {
            return $x->getFooterOrder() <=> $y->getFooterOrder();
        };
    }
private function footerSorter(): Closure
    {
        return static function (ModuleFooterInterface $x, ModuleFooterInterface $y): int {
            return $x->getFooterOrder() <=> $y->getFooterOrder();
        };
    }
private function footerSorter ( ) : Closure { return static function ( ModuleFooterInterface $ x , ModuleFooterInterface $ y ) : int { return $ x -> getFooterOrder ( ) <=> $ y -> getFooterOrder ( ) ; } ; }
A function to sort footers

@return Closure
A function to sort footers