Monday, October 17, 2011

A better table sorting

Some languages, such as French, German, Spanish, and many others use diacritics: é, í, ü, etc.

The normal sort function available in Javascript considers that any letter with a diacritic should be sorted after z. It was a bit annoying when using the French interface because the language names were not sorted as expected: "gaélique écossais" after "gallois", "géorgien" after "grec", and "hébreu" after "hongrois".

As can be seen on the following screenshot, this has been corrected (red dots identify languages which are now correctly sorted).

No comments: