Skip to content

Commit

Permalink
[kbn-repo-packages] Add sort locale (#199138)
Browse files Browse the repository at this point in the history
In some situations `yarn kbn bootstrap` is causing the sort order of
tsconfig.base.json to change.

This adds a locale to the comparative to keep the sort order consistent.

(cherry picked from commit 935c3aa)
  • Loading branch information
jbudz committed Nov 6, 2024
1 parent d040cc4 commit 5b71313
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kbn-repo-packages/modern/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Package {
* @param {Package} b
*/
static sorter(a, b) {
return a.manifest.id.localeCompare(b.manifest.id);
return a.manifest.id.localeCompare(b.manifest.id, 'en');
}

/**
Expand Down

0 comments on commit 5b71313

Please sign in to comment.