Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sorting umlauts characters Ä, Ö, Ü #9

Open
diogoalves opened this issue Nov 19, 2012 · 2 comments
Open

Sorting umlauts characters Ä, Ö, Ü #9

diogoalves opened this issue Nov 19, 2012 · 2 comments

Comments

@diogoalves
Copy link

In German letters with umlaut (Ä, Ö, Ü) are treated generally just like their non-umlauted versions; ß is always sorted as ss. This makes the alphabetic order Arg, Ärgerlich, Arm, Assistent, Aßlar, Assoziation. For phone directories and similar lists of names, the umlauts are to be collated like the letter combinations "ae", "oe", "ue". This makes the alphabetic order Udet, Übelacker, Uell, Ülle, Ueve, Üxküll, Uffenbach.

http://en.wikipedia.org/wiki/Alphabetical_order

it could be done replacing Ä, Ö, Ü by A, O, U .

but I am not sure where to write this in code.

@Mottie
Copy link
Contributor

Mottie commented Feb 10, 2013

For now, you should check out sugar.js.

overset pushed a commit that referenced this issue Jan 29, 2016
+ added better unicode locale support fixing #9
+ added regex lookahead for better chunking with mixed number/strings
+ fix for #13 (comment)
@oliversalzburg
Copy link

I just wanted to note that strings containing umlauts are handled differently from others by this module.

Strings with umlauts are handled by localeCaseCompare, strings without are simply passed to <. This leads to very mixed results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants