Template:Sort Roman/doc

Usage
Sort Roman can be used in sortable tables to sort Roman numerals up to 38 correctly in numerical order. Without the template, IX, XIX, XXIX sort wrong. The template can be used on all Roman numerals up to 38 but only has to be used for IX, XIX, XXIX (9, 19, 29).
 * Change  to
 * Change  to
 * Change  to

The template also works with lowercase numerals like ix, xix, xxix.

There is no option to sort Roman numerals above 38 (more complicated and maybe never needed).

Arabic numerals (normal decimal digits) cannot be mixed with Roman numerals in a sortable column.

Demonstration
The source text of this table uses Sort Roman in the whole third column and three cells of the fourth column.