src/Migration/Sorter/DataFixturesSorter.php
protected function orderFixturesByNumber()
    {
        $this->orderedFixtures = $this->fixtures;
        usort(
            $this->orderedFixtures,
            function ($a, $b) {
                if ($a instanceof OrderedFixtureInterface && $b instanceof OrderedFixtureInterface) {
                    if ($a->getOrder() === $b->getOrder()) {
                        return 0;
                    }

                    return $a->getOrder() < $b->getOrder() ? -1 : 1;
                } elseif ($a instanceof OrderedFixtureInterface) {
                    return $a->getOrder() === 0 ? 0 : 1;
                } elseif ($b instanceof OrderedFixtureInterface) {
                    return $b->getOrder() === 0 ? 0 : -1;
                }

                return 0;
            }
        );
    }
protected function orderFixturesByNumber()
    {
        $this->orderedFixtures = $this->fixtures;
        usort(
            $this->orderedFixtures,
            function ($a, $b) {
                if ($a instanceof OrderedFixtureInterface && $b instanceof OrderedFixtureInterface) {
                    if ($a->getOrder() === $b->getOrder()) {
                        return 0;
                    }

                    return $a->getOrder() < $b->getOrder() ? -1 : 1;
                } elseif ($a instanceof OrderedFixtureInterface) {
                    return $a->getOrder() === 0 ? 0 : 1;
                } elseif ($b instanceof OrderedFixtureInterface) {
                    return $b->getOrder() === 0 ? 0 : -1;
                }

                return 0;
            }
        );
    }
protected function orderFixturesByNumber ( ) { $ this -> orderedFixtures = $ this -> fixtures ; usort ( $ this -> orderedFixtures , function ( $ a , $ b ) { if ( $ a instanceof OrderedFixtureInterface && $ b instanceof OrderedFixtureInterface ) { if ( $ a -> getOrder ( ) === $ b -> getOrder ( ) ) { return 0 ; } return $ a -> getOrder ( ) < $ b -> getOrder ( ) ? - 1 : 1 ; } elseif ( $ a instanceof OrderedFixtureInterface ) { return $ a -> getOrder ( ) === 0 ? 0 : 1 ; } elseif ( $ b instanceof OrderedFixtureInterface ) { return $ b -> getOrder ( ) === 0 ? 0 : - 1 ; } return 0 ; } ) ; }
Order fixtures by priority

@return array
Order fixtures by priority