diff --git a/Command/FixturesLoadCommand.php b/Command/FixturesLoadCommand.php index 0d37873..71d43ef 100644 --- a/Command/FixturesLoadCommand.php +++ b/Command/FixturesLoadCommand.php @@ -279,7 +279,9 @@ EOT protected function getFixtureFiles($type = 'sql', $in = null) { $finder = new Finder(); - $finder->sortByName()->name('*.' . $type); + $finder->sort(function ($a, $b) { + return strcmp($a->getPathname(), $b->getPathname()); + })->name('*.' . $type); $files = $finder->in(null !== $in ? $in : $this->absoluteFixturesPath);