Airship\Hangar\Commands\Help::sortCommands PHP Method

sortCommands() public method

Used for uasort() calls in this class
public sortCommands ( array $a, array $b ) : integer
$a array
$b array
return integer
    public function sortCommands(array $a, array $b) : int
    {
        if ($a['display'] > $b['display']) {
            return 1;
        }
        if ($a['display'] < $b['display']) {
            return -1;
        }
        return (int) ($a['name'] <=> $b['name']);
    }