New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 669063 link

Starred by 1 user

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Collator sorts the character 'œ' incorrectly for 'da' Danish

Reported by m...@aronallen.com, Nov 28 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36

Steps to reproduce the problem:
 ['œ' 'oe', 'o', 'x', 'ø'] are sorted incorreclty with 
new Intl.Collator('da').compare

What is the expected behavior?
The expected behavior is the following order
['o', 'oe', 'œ', 'x', 'ø']

What went wrong?
They are sorted incorrectly.
["o", "oe", "x", "ø", "œ"]

œ should be considered as the characters 'oe' and follow  'oe' when sorting alphabetically in Danish.

Did this work before? No 

Does this work in other browsers? N/A

Chrome version: 54.0.2840.99  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: Shockwave Flash 23.0 r0

Authority on the danish language.
http://sproget.dk/raad-og-regler/retskrivningsregler/retskrivningsregler/a7-1-6/a7-4-alfabetisk-rekkefolge
 

Comment 1 by m...@aronallen.com, Nov 28 2016

This works as expected in IE11.
Firefox has the same incorrect order as Chrome.
Components: UI>Internationalization
Labels: Needs-Triage-M54 M-54
Cc: sureshkumari@chromium.org
Labels: Needs-Feedback
Reporter@ could you please provide more description to triage the issue from our end.

Thanks..
Cc: littledan@chromium.org
Components: -UI>Internationalization -Blink>JavaScript Blink>JavaScript>Internationalization
Status: Available (was: Unconfirmed)
repro:
var foo = ["œ", "oe", "o", "x", "ø"];
var coll = new Intl.Collator('da');
var bar = foo.sort(coll);


Comment 5 by m...@aronallen.com, Dec 5 2016

the code littledan@chromium.org provided can reproduce the issue
Cc: js...@chromium.org
If Firefox has the same incorrect behavior as Chrome, I suspect the issue is in ICU, which both of those use, and which IE11 does not use. I found this ICU ticket which appears related: http://bugs.icu-project.org/trac/ticket/12853 . It appears that there is some discussion there about what is linguistically appropriate.
Project Member

Comment 8 by sheriffbot@chromium.org, Nov 15

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment