Difference between revisions of "Template:HD/tablesort"
Jump to navigation
Jump to search
imported>Gadget850 (create) |
imported>JJMC89 (mobved) |
||
Line 3: | Line 3: | ||
* Columns that mix alpha and numerical data will sort alphabetically— this can be resolved by using {{tl|nts}}. | * Columns that mix alpha and numerical data will sort alphabetically— this can be resolved by using {{tl|nts}}. | ||
* When using general text with and without wikilinks, use {{tl|sort}}. | * When using general text with and without wikilinks, use {{tl|sort}}. | ||
− | * To sort dates, use {{tl| | + | * To sort dates, use {{tl|Date table sorting}}. |
* For sorting names in the format ''last, first'' use {{tl|sortname}}.<!--- TemplateHD/tablesort ---> | * For sorting names in the format ''last, first'' use {{tl|sortname}}.<!--- TemplateHD/tablesort ---> |
Latest revision as of 05:17, 24 June 2019
When creating sortable tables, there can be issues with how a column sorts. See Help:Sorting for a complete overview.
- Columns that mix alpha and numerical data will sort alphabetically— this can be resolved by using {{nts}}.
- When using general text with and without wikilinks, use {{sort}}.
- To sort dates, use {{Date table sorting}}.
- For sorting names in the format last, first use {{sortname}}.