From 5b71313595c306e61f20e8cf58822a27a7b5b787 Mon Sep 17 00:00:00 2001 From: Jon Date: Wed, 6 Nov 2024 11:53:23 -0600 Subject: [PATCH] [kbn-repo-packages] Add sort locale (#199138) 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 935c3aa974a22e99a3284a7969217306ba5f3609) --- packages/kbn-repo-packages/modern/package.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/kbn-repo-packages/modern/package.js b/packages/kbn-repo-packages/modern/package.js index 3ec33a69e841a..08d16fcf468ec 100644 --- a/packages/kbn-repo-packages/modern/package.js +++ b/packages/kbn-repo-packages/modern/package.js @@ -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'); } /**