src/Valkyrja/Console/Commands/CommandsListCommand.php
protected function sortCommands(array &$commands): void
    {
        usort(
            $commands,
            function (Command $item1, Command $item2) {
                return $item1->getName() <=> $item2->getName();
            }
        );
    }
protected function sortCommands(array &$commands): void
    {
        usort(
            $commands,
            function (Command $item1, Command $item2) {
                return $item1->getName() <=> $item2->getName();
            }
        );
    }
Sort commands by name.

@param array $commands The commands

@return void