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
,
Nov 28 2016
,
Nov 29 2016
Reporter@ could you please provide more description to triage the issue from our end. Thanks..
,
Dec 5 2016
repro:
var foo = ["œ", "oe", "o", "x", "ø"];
var coll = new Intl.Collator('da');
var bar = foo.sort(coll);
,
Dec 5 2016
the code littledan@chromium.org provided can reproduce the issue
,
Dec 5 2016
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.
,
Nov 14 2017
The same issue with cyrillic alphabet https://stackoverflow.com/questions/47286276/sorting-cyrillic-words-with-accents/
,
Nov 15
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 |
||||||
Comment 1 by m...@aronallen.com
, Nov 28 2016