Template:Sort3/doc

This template is for optionally sorting tables by three specified sortkeys.

If necessary, one can apply sorting using a sortkey that due to CSS is not displayed: ... . Javascript sorting is based on the text inside and outside the tags, without the tags themselves. A hidden sortkey can be put at the start.

This template makes that more convenient. Three sortkeys can be entered and displayed in custom order and with custom character separating them.


 * To use it, place this in your table cell:


 * Parameters:
 * — for specifying first sortkey
 * — for specifying second sortkey
 * — for specifying third sortkey
 * — to set unique display order (ex. 'bca', 'cab', or 'ba')
 * — character to use between sortkeys instead of default
 * — character to use between sortkeys, only after ' ', instead of default  - can also be used to add additional characters after the final ' ' appearance
 * — character to use between sortkeys, only after ' ', instead of default  - can also be used to add additional characters after the final ' ' appearance
 * — character to use between sortkeys, only after ' ', instead of default  - can also be used to add additional characters after the final ' ' appearance


 * Examples

It presently works through hidden CSS, as described at Help:Sorting. If a cleaner way of doing this is developed, the template will be changed. A table using this template should use it in all rows.