Main Page

encyclopedia.codeboy.net

 

Alphabetical order

An alphabet usually has a convential order of letters. Alphabetical order of words and phrases is based on this order in combination with the principle of lexicographical order. A blank space is treated as a character that comes before the letters. Conventions may vary where to position digits and special characters. A common order is:
  • blank space\n*symbols\n*digits\n*letters
A more advanced system may consider numbers as such instead of just considering the digits; in that case 100 does not come between 10 and 11, but after 11. This can be extended to Roman numerals. However, if a number is spelled out it is treated as a word. For example:\n*$2.99 \n*2 dollars 99 cents\n*2.99\n*two dollars 99 cents Normally capitals and lowercase letters have the same position. On computer systems sometimes a crude system is used, e.g. based on ASCII order. In that case "a" comes after "Z", see e.g. [1].

"Don't let it end like this. Tell them I said something." - last words of Pancho Villa (1877-1923)