European ordering rules
|
When lists of names or words need to be ordered, but the context does not define a particular single language or alphabet, the European ordering rules provide a way to put them in sequence.
A list of "first level letters" is defined. Arabic numerals come before Latin letters which come before Greek ones which come before Cyrillic ones.
At first, try to order two strings based just on comparing "first level letters", ignoring diacritical marks, considering "second level letters" as equivalent to the corresponding first level letters, considering capital and lowercase letters as equivalent, and ignoring special characters.
If there is a tie, reconsider, taking "second level letters" into account. For example, the Unicode letter U00F8 (LATIN SMALL LETTER O WITH STROKE, "ø") will now come after the letter "o".
If there is a tie, reconsider, taking diacritical marks into account, in an order as specified in the standard (which is usually the same as the order in Unicode).
If there is a tie, reconsider, putting small letters before the corresponding capital ones.
If there is a tie, reconsider, taking special characters into account.
See also
External link
- European Ordering Rules (http://anubis.dkuug.dk/CEN/TC304/EOR/eorhome.html), ENV 13710 - a "European Pre-Standard"