Install/Loader.php
private function orderInstallersByNumber()
    {
        $this->orderedInstallers = $this->installers;
        usort($this->orderedInstallers, function ($a, $b) {
            if ($a instanceof OrderedInstallerInterface && $b instanceof OrderedInstallerInterface) {
                if ($a->getOrder() === $b->getOrder()) {
                    return 0;
                }
                return $a->getOrder() < $b->getOrder() ? -1 : 1;
            } elseif ($a instanceof OrderedInstallerInterface) {
                return $a->getOrder() === 0 ? 0 : 1;
            } elseif ($b instanceof OrderedInstallerInterface) {
                return $b->getOrder() === 0 ? 0 : -1;
            }
            return 0;
        });
    }
private function orderInstallersByNumber()
    {
        $this->orderedInstallers = $this->installers;
        usort($this->orderedInstallers, function ($a, $b) {
            if ($a instanceof OrderedInstallerInterface && $b instanceof OrderedInstallerInterface) {
                if ($a->getOrder() === $b->getOrder()) {
                    return 0;
                }
                return $a->getOrder() < $b->getOrder() ? -1 : 1;
            } elseif ($a instanceof OrderedInstallerInterface) {
                return $a->getOrder() === 0 ? 0 : 1;
            } elseif ($b instanceof OrderedInstallerInterface) {
                return $b->getOrder() === 0 ? 0 : -1;
            }
            return 0;
        });
    }
private function orderInstallersByNumber ( ) { $ this -> orderedInstallers = $ this -> installers ; usort ( $ this -> orderedInstallers , function ( $ a , $ b ) { if ( $ a instanceof OrderedInstallerInterface && $ b instanceof OrderedInstallerInterface ) { if ( $ a -> getOrder ( ) === $ b -> getOrder ( ) ) { return 0 ; } return $ a -> getOrder ( ) < $ b -> getOrder ( ) ? - 1 : 1 ; } elseif ( $ a instanceof OrderedInstallerInterface ) { return $ a -> getOrder ( ) === 0 ? 0 : 1 ; } elseif ( $ b instanceof OrderedInstallerInterface ) { return $ b -> getOrder ( ) === 0 ? 0 : - 1 ; } return 0 ; } ) ; }
Orders installers by number

@todo maybe there is a better way to handle reordering
@return void
Orders installers by number