private function sortServices($services)
    {
        uasort($services, static function ($a, $b) {
            if ($a->getName() === $b->getName()) {
                return 0;
            }

            return ($a->getName() < $b->getName()) ? -1 : 1;
        });

        return $services;
    }
private function sortServices($services)
    {
        uasort($services, static function ($a, $b) {
            if ($a->getName() === $b->getName()) {
                return 0;
            }

            return ($a->getName() < $b->getName()) ? -1 : 1;
        });

        return $services;
    }
private function sortServices ( $ services ) { uasort ( $ services , static function ( $ a , $ b ) { if ( $ a -> getName ( ) === $ b -> getName ( ) ) { return 0 ; } return ( $ a -> getName ( ) < $ b -> getName ( ) ) ? - 1 : 1 ; } ) ; return $ services ; }
Sort alphabetically services.

@param array $services

@return array
Sort alphabetically services .