GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Improved support for localeCompare · Issue #10617 · NativeScript/NativeScript

Improved support for localeCompare #10617

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
Improved support for localeCompare#10617
Copy link
Labels
bug-pending-triageReported bug, pending triage to confirm.Reported bug, pending triage to confirm.duplicate

Description

@fpaaske
fpaaske
opened on Sep 4, 2024
Issue body actions

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', {sensitivity:'case', usage: 'sort'}))
[
"a",
"A",
"b",
"B",
"æ",
"Æ",
"ø",
"Ø",
"å",
"Å"
]

So I'd assume that this should also be supported in NativeScript with V8?
But it seems like the locale and option parameters are completely ignored.

Is this still something that's out of NativeScript's control?

Reproduction

Create an array with 'æ', 'ø', and 'å', sort with localeCompare as the example above.
The array is now incorrectly sorted as 'å', 'æ', 'ø'.

Relevant log output (if applicable)

No response

Environment

No response

Please accept these terms

  • I have searched the existing issues as well as StackOverflow and this has not been posted before
  • This is a bug report
  • I agree to follow this project's Code of Conduct

Activity

  1. fpaaske
    added
    bug-pending-triageReported bug, pending triage to confirm.Reported bug, pending triage to confirm.
    on Sep 4, 2024
  2. NathanWalker
    added
    duplicate
    on Oct 23, 2026
  3. NathanWalker commented on Oct 23, 2026

    @NathanWalker
    NathanWalker
    on Oct 23, 2026
    Contributor
    More actions

    Duplicate of #11563

    localeCompare ignoring the locale and options comes from the runtimes being built without ICU. #11563 tracks shipping the V8 runtimes with ICU so Intl and locale-aware string comparison work.

  4. NathanWalker
    closed this as not plannedon Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-pending-triageReported bug, pending triage to confirm.Reported bug, pending triage to confirm.duplicate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.