Closed Bug 954583 Opened 10 years ago Closed 10 years ago

Sorting contacts that are beginning with accented character

Categories

(Instantbird Graveyard :: Contacts window, defect)

defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bugzilla, Unassigned)

References

Details

*** Original post on bio 1150 by Michal Stanke <michal.stanke AT mikk.cz> at 2011-11-07 15:11:00 UTC ***

I have some contacts beginning with the letter with diacritical mark. But they are sorted at the end of the list.
Sorting of an accented character should be right behind "it's unaccented version": A, Á, Ä, B, C, Č, D, Ď,...
Summary: Sorting contacts beginning with accented character → Sorting contacts that are beginning with accented character
*** Original post on bio 1150 at 2011-11-07 15:58:09 UTC ***

This should be fixed by bug 954206 (bio 772), which is almost ready to be checked in, it seems.
Severity: normal → trivial
Status: UNCONFIRMED → NEW
Depends on: 954206
Ever confirmed: true
*** Original post on bio 1150 at 2011-11-07 16:12:43 UTC ***

The correct order depends on the language, in:

German: Ä,Ö,Ü are treated like they were AE,OE,UE respectively.
Swedish: Å,Ä,Ö are sorted to the end of the alphabet.


-> I think the sort order should depend on the locale.

PS: Maybe the patch for bug 954206 (bio 772) already takes care of this since it is calling a method named |localeCompare| to figure out the order. Unfortunately I don't know if it does what the name suggests.


(clokep mid-aired me here, commenting anyways).
*** Original post on bio 1150 by michal.stanke AT mikk.cz at 2011-11-19 13:17:23 UTC ***

Yes. Already fixed in bug 954206 (bio 772).
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
*** Original post on bio 1150 at 2011-11-19 14:26:22 UTC ***

I don't want to hijack this bug but shouldn't it rather be: "Sort contacts in locale specific order"? Sorting accented characters in the names is only a subset of this task.

Where it fails: the swedish sort order still isn't the correct one. I checked and localeCompare seems to always return the same order, maybe we've hit a Mozilla bug here.
You need to log in before you can comment on or make changes to this bug.