Extension:Presort

Description
This 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

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
can be found here.