fix(@angular/cli): do not sort migrations of the same version alphabetically - #33337
Conversation
There was a problem hiding this comment.
Code Review
This pull request refactors the migration sorting logic in migration.ts by extracting the inline sorting comparator into a reusable helper function sortMigrations. Note that this change removes the fallback sorting by migration name (a.name.localeCompare(b.name)) when versions are equal, which may affect the execution order of migrations with the same version. No review comments were provided, so there is no additional feedback.
…tically When executing update migrations, schematics targeting the same version were previously sorted alphabetically by name. This change removes the alphabetical sorting fallback, allowing migrations targeting the same version to preserve their original declaration/discovery order.
d3ad270 to
8724944
Compare
|
This PR was merged into the repository. The changes were merged into the following branches:
|
|
This pull request has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
When executing update migrations, schematics targeting the same version were previously sorted alphabetically by name. This change removes the alphabetical sorting fallback, allowing migrations targeting the same version to preserve their original declaration/discovery order.