Re: Sorting strings containing special characters (german 'Umlaute')

2007-03-04 Thread Jussi Salmela
Robin Becker kirjoitti: > > Björn, in one of our projects we are sorting in javascript in several > languages English, German, Scandinavian languages, Japanese; from > somewhere (I cannot actually remember) we got this sort spelling > function for scandic languages > > a > .replace(/\u00C4/g,'

Re: Sorting strings containing special characters (german 'Umlaute')

2007-03-02 Thread Bjoern Schliessmann
Robin Becker wrote: > Björn, in one of our projects we are sorting in javascript in > several languages English, German, Scandinavian languages, > Japanese; from somewhere (I cannot actually remember) we got this > sort spelling function for scandic languages > > a > .replace(/\u00C4/g,'A~') //A

Re: Sorting strings containing special characters (german 'Umlaute')

2007-03-02 Thread Robin Becker
Bjoern Schliessmann wrote: > Hallvard B Furuseth wrote: >> [EMAIL PROTECTED] writes: ... > > In German, there are some different forms: > > - the classic sorting for e.g. word lists: umlauts and plain vowels > are of same value (like you mentioned): ä = a > > - name list sorting for e.g. pho

Re: Sorting strings containing special characters (german 'Umlaute')

2007-03-02 Thread [EMAIL PROTECTED]
On 2 Mrz., 15:25, Peter Otten <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > For sorting the letter "Ä" is supposed to be treated like "Ae", There are several way of defining the sorting order. The variant "ä equals ae" follows DINDIN 5007 (according to wikipedia); defining (a equals ä)

Re: Sorting strings containing special characters (german 'Umlaute')

2007-03-02 Thread Bjoern Schliessmann
Hallvard B Furuseth wrote: > [EMAIL PROTECTED] writes: >> For sorting the letter "Ä" is supposed to be treated like "Ae", >> therefore sorting this list should yield >> l = ["Aber, "Ärger", "Beere"] > > Are you sure? Maybe I'm thinking of another language, I thought Ä > shold be sorted together

Re: Sorting strings containing special characters (german 'Umlaute')

2007-03-02 Thread Hallvard B Furuseth
[EMAIL PROTECTED] writes: > For sorting the letter "Ä" is supposed to be treated like "Ae", > therefore sorting this list should yield > l = ["Aber, "Ärger", "Beere"] Are you sure? Maybe I'm thinking of another language, I thought Ä shold be sorted together with A, but after A if the words are ot

Re: Sorting strings containing special characters (german 'Umlaute')

2007-03-02 Thread Peter Otten
[EMAIL PROTECTED] wrote: > I know that this topic has been discussed in the past, but I could not > find a working solution for my problem: sorting (lists of) strings > containing special characters like "ä", "ü",... (german umlaute). > Consider the following list: > l = ["Aber", "Beere", "Ärger"]

Re: Sorting strings containing special characters (german 'Umlaute')

2007-03-02 Thread Robin Becker
[EMAIL PROTECTED] wrote: > Hi ! > > I know that this topic has been discussed in the past, but I could not > find a working solution for my problem: sorting (lists of) strings > containing special characters like "ä", "ü",... (german umlaute). > Consider the following list: > l = ["Aber", "Beere",

Sorting strings containing special characters (german 'Umlaute')

2007-03-02 Thread [EMAIL PROTECTED]
Hi ! I know that this topic has been discussed in the past, but I could not find a working solution for my problem: sorting (lists of) strings containing special characters like "ä", "ü",... (german umlaute). Consider the following list: l = ["Aber", "Beere", "Ärger"] For sorting the letter "Ä" i