Extension:Presort

The Presort extension adds a &lt;presort&gt; tag to the wiki markup. This tag can be used around sortable and non-sortable wikitables to presort the table without the need of an ordered wikitext.

mode
The table is presorted according to the values in a column. The table is presorted according to a key. Default value is "column".
 * column
 * key

sortcolumn
defines the sortcolumn. Can only be used with "column" mode. Numbering starts with 1. Default value is "1".

order
ascending order descending order Default value is "asc".
 * asc
 * desc

numberingcolumn
Allows to define a columnnumber, in which automated numbering is filled in. All existing content in this column is overwritten! Default value is -1, which means no numbering.

template
Allows to define the template used for the key definition. For example templates like dts, sort or hiddensort. Can only be used with "key" mode. Default value is "dts".

Examples
See here.