Skip to content

Commit

Permalink
Fix wrong sorting arguments when array_multisort is used (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnrDaemon authored Nov 21, 2023
1 parent ae520cc commit 9cad826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FileRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function getMigrations(): array
$migrations[] = $migration->withState(new State($f['name'], $f['created']));
}

\array_multisort($timestamps, $chunks, SORT_ASC | SORT_NATURAL, $migrations);
\array_multisort($timestamps, $chunks, SORT_NATURAL, $migrations);

return $migrations;
}
Expand Down

0 comments on commit 9cad826

Please sign in to comment.