Correct ordering

Deciding what is the correct order is not as trivial an issue as may first appear. A number of factors, including language, capitalization and relative string lengths all contribute to this decision.

Sorting order will differ for each human language. The Roman alphabet used in English has an obvious order, with 'A' always appearing before 'B', and 'Y' always appearing before 'Z'. But it is far less obvious whether 'é' and ' ' are to be treated as the same characters or different, and if different which should appear first. This problem is even more obvious for different alphabets, such as Greek and Cyrillic. Fortunately, the UNICODE initiative (to create standard ways to store text electronically for all the world languages) ...

Get XSL companion, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.