Title: Improved support for localeCompare · Issue #10617 · NativeScript/NativeScript · GitHub
Open Graph Title: Improved support for localeCompare · Issue #10617 · NativeScript/NativeScript
X Title: Improved support for localeCompare · Issue #10617 · NativeScript/NativeScript
Description: Issue Description A small followup on #7810; I've tested this on Node, Safari, Edge and Chrome, they all produce the expected outcome for me: ['æ','ø','å','Å','Æ','Ø', 'A', 'a', 'B', 'b'].sort((a, b) => a.localeCompare(b, 'nb', {sensitiv...
Open Graph Description: Issue Description A small followup on #7810; I've tested this on Node, Safari, Edge and Chrome, they all produce the expected outcome for me: ['æ','ø','å','Å','Æ','Ø', 'A', 'a', 'B', 'b'].sort((a, ...
X Description: Issue Description A small followup on #7810; I've tested this on Node, Safari, Edge and Chrome, they all produce the expected outcome for me: ['æ','ø','å','Å',...
Opengraph URL: https://github.com/NativeScript/NativeScript/issues/10617
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Improved support for localeCompare","articleBody":"### Issue Description\n\nA small followup on #7810;\r\n\r\nI've tested this on Node, Safari, Edge and Chrome, they all produce the expected outcome for me:\r\n\r\n['æ','ø','å','Å','Æ','Ø', 'A', 'a', 'B', 'b'].sort((a, b) => a.localeCompare(b, 'nb', {sensitivity:'case', usage: 'sort'}))\r\n[\r\n \"a\",\r\n \"A\",\r\n \"b\",\r\n \"B\",\r\n \"æ\",\r\n \"Æ\",\r\n \"ø\",\r\n \"Ø\",\r\n \"å\",\r\n \"Å\"\r\n]\r\n\r\nSo I'd assume that this should also be supported in NativeScript with V8?\r\nBut it seems like the locale and option parameters are completely ignored.\r\n\r\nIs this still something that's out of NativeScript's control?\n\n### Reproduction\n\nCreate an array with 'æ', 'ø', and 'å', sort with localeCompare as the example above.\r\nThe array is now incorrectly sorted as 'å', 'æ', 'ø'.\n\n### Relevant log output (if applicable)\n\n_No response_\n\n### Environment\n\n_No response_\n\n### Please accept these terms\n\n- [X] I have searched the [existing issues](https://github.com/NativeScript/NativeScript/issues) as well as [StackOverflow](https://stackoverflow.com/questions/tagged/nativescript) and this has not been posted before\n- [X] This is a bug report\n- [X] I agree to follow this project's [Code of Conduct](https://github.com/NativeScript/NativeScript/blob/master/tools/notes/CONTRIBUTING.md#coc)","author":{"url":"https://github.com/fpaaske","@type":"Person","name":"fpaaske"},"datePublished":"2024-09-04T15:49:19Z","url":"https://github.com/NativeScript/NativeScript/issues/10617"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:79f4f014-9817-dd3e-a71a-a7a624ee86c2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CC34:1F8F:5C8BC5:78FE7D:6B011DE6 |
| html-safe-nonce | 2ad94722182cbca908a2881ace88a9a3c0788aa327726e5169798a3e36d9afaa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzM0OjFGOEY6NUM4QkM1Ojc4RkU3RDo2QjAxMURFNiIsInZpc2l0b3JfaWQiOiI0Njg3MDIyNTg5ODYyODEzMTU4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 602ab1336ec6d4e94c2ddffd508548d3ef19a1762a63b613c8d29d00933f93e0 |
| hovercard-subject-tag | issue:2505738683 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/NativeScript/10617/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9054e20e7909fa1b282c07e2a706fee6ec4b5a63f63a88673b846cc68d807721/NativeScript/NativeScript/issues/10617 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9054e20e7909fa1b282c07e2a706fee6ec4b5a63f63a88673b846cc68d807721/NativeScript/NativeScript/issues/10617 |
| og:image:alt | Issue Description A small followup on #7810; I've tested this on Node, Safari, Edge and Chrome, they all produce the expected outcome for me: ['æ','ø','å','Å','Æ','Ø', 'A', 'a', 'B', 'b'].sort((a, ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fpaaske |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/NativeScript git https://github.com/NativeScript/NativeScript.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 31492490 |
| octolytics-dimension-repository_nwo | NativeScript/NativeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31492490 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/NativeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width