[8.x] [kbn-repo-packages] Add sort locale (#199138) (#199198)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[kbn-repo-packages] Add sort locale
(#199138)](https://github.com/elastic/kibana/pull/199138)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT
[{"author":{"name":"Jon","email":"jon@elastic.co"},"sourceCommit":{"committedDate":"2024-11-06T17:53:23Z","message":"[kbn-repo-packages]
Add sort locale (#199138)\n\nIn some situations `yarn kbn bootstrap` is
causing the sort order of\r\ntsconfig.base.json to change.\r\n\r\nThis
adds a locale to the comparative to keep the sort order
consistent.","sha":"935c3aa974a22e99a3284a7969217306ba5f3609","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","v9.0.0","backport:prev-major"],"title":"[kbn-repo-packages]
Add sort
locale","number":199138,"url":"https://github.com/elastic/kibana/pull/199138","mergeCommit":{"message":"[kbn-repo-packages]
Add sort locale (#199138)\n\nIn some situations `yarn kbn bootstrap` is
causing the sort order of\r\ntsconfig.base.json to change.\r\n\r\nThis
adds a locale to the comparative to keep the sort order
consistent.","sha":"935c3aa974a22e99a3284a7969217306ba5f3609"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199138","number":199138,"mergeCommit":{"message":"[kbn-repo-packages]
Add sort locale (#199138)\n\nIn some situations `yarn kbn bootstrap` is
causing the sort order of\r\ntsconfig.base.json to change.\r\n\r\nThis
adds a locale to the comparative to keep the sort order
consistent.","sha":"935c3aa974a22e99a3284a7969217306ba5f3609"}}]}]
BACKPORT-->

Co-authored-by: Jon <jon@elastic.co>
This commit is contained in:
Kibana Machine 2024-11-07 06:56:28 +11:00 committed by GitHub
parent ec22c125b8
commit b71b0b3f23
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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');
}
/**