<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pathfinderwiki.tommahs.nl/Template:Sort/doc/history?feed=atom</id>
	<title>Template:Sort/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pathfinderwiki.tommahs.nl/Template:Sort/doc/history?feed=atom"/>
	<link rel="alternate" type="text/html" href="https://pathfinderwiki.tommahs.nl/Template:Sort/doc/history"/>
	<updated>2026-07-22T06:43:29Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.6</generator>
	<entry>
		<id>https://pathfinderwiki.tommahs.nl/index.php?title=Template:Sort/doc&amp;diff=2171&amp;oldid=prev</id>
		<title>Tommahs: Created page with &quot;&#039;&#039;&#039;{{tl|Sort}}&#039;&#039;&#039; is a utility template used to force a cell in a sortable table (one using the {{xt|sortable}} class) to be sorted differently from its contents.  == Usage ==  &lt;pre&gt; {{Sort|sort key}} &lt;/pre&gt;  The template takes one unnamed parameter:  ; sort key: The text to use when sorting the table by this cell&#039;s column.  == Example ==  &lt;pre&gt; {| class=&quot;tantable sortable&quot; ! Title ! Issue |- | &#039;&#039;Dance of the Damned&#039;&#039; | {{Sort|099}} PF #99 |- | {{Sort|Song of Silver, A}}...&quot;</title>
		<link rel="alternate" type="text/html" href="https://pathfinderwiki.tommahs.nl/index.php?title=Template:Sort/doc&amp;diff=2171&amp;oldid=prev"/>
		<updated>2024-07-22T12:51:27Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;{{tl|Sort}}&amp;#039;&amp;#039;&amp;#039; is a utility template used to force a cell in a sortable table (one using the {{xt|sortable}} class) to be sorted differently from its contents.  == Usage ==  &amp;lt;pre&amp;gt; {{Sort|sort key}} &amp;lt;/pre&amp;gt;  The template takes one unnamed parameter:  ; sort key: The text to use when sorting the table by this cell&amp;#039;s column.  == Example ==  &amp;lt;pre&amp;gt; {| class=&amp;quot;tantable sortable&amp;quot; ! Title ! Issue |- | &amp;#039;&amp;#039;Dance of the Damned&amp;#039;&amp;#039; | {{Sort|099}} PF #99 |- | {{Sort|Song of Silver, A}}...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;{{tl|Sort}}&amp;#039;&amp;#039;&amp;#039; is a utility template used to force a cell in a sortable table (one using the {{xt|sortable}} class) to be sorted differently from its contents.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Sort|sort key}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The template takes one unnamed parameter:&lt;br /&gt;
&lt;br /&gt;
; sort key: The text to use when sorting the table by this cell&amp;#039;s column.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{| class=&amp;quot;tantable sortable&amp;quot;&lt;br /&gt;
! Title&lt;br /&gt;
! Issue&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;Dance of the Damned&amp;#039;&amp;#039;&lt;br /&gt;
| {{Sort|099}} PF #99&lt;br /&gt;
|-&lt;br /&gt;
| {{Sort|Song of Silver, A}} &amp;#039;&amp;#039;A Song of Silver&amp;#039;&amp;#039;&lt;br /&gt;
| {{Sort|100}} PF #100&lt;br /&gt;
|-&lt;br /&gt;
| {{Sort|Kintargo Contract, The}} &amp;#039;&amp;#039;The Kintargo Contract&amp;#039;&amp;#039;&lt;br /&gt;
| {{Sort|101}} PF #101&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; results in:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;tantable sortable&amp;quot;&lt;br /&gt;
! Title&lt;br /&gt;
! Issue&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;Dance of the Damned&amp;#039;&amp;#039;&lt;br /&gt;
| {{Sort|099}} PF #99&lt;br /&gt;
|-&lt;br /&gt;
| {{Sort|Song of Silver, A}} &amp;#039;&amp;#039;A Song of Silver&amp;#039;&amp;#039;&lt;br /&gt;
| {{Sort|100}} PF #100&lt;br /&gt;
|-&lt;br /&gt;
| {{Sort|Kintargo Contract, The}} &amp;#039;&amp;#039;The Kintargo Contract&amp;#039;&amp;#039;&lt;br /&gt;
| {{Sort|101}} PF #101&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
When clicking on the table header row to sort by column contents, note how the sort keys affect the resulting order.&lt;br /&gt;
&lt;br /&gt;
Numbers are not sorted in truly numeric order; &amp;quot;10&amp;quot; is sorted before &amp;quot;9&amp;quot;, because &amp;quot;1&amp;quot; comes before &amp;quot;9&amp;quot; in sorting order in the same sense that &amp;quot;Aroden&amp;quot; comes before &amp;quot;Zyphus&amp;quot;. To correctly sort numbers, pad all numbers with enough leading zeroes for the sort key with the most digits (&amp;quot;09&amp;quot; comes before &amp;quot;10&amp;quot;, &amp;quot;099&amp;quot; comes before &amp;quot;100&amp;quot;, &amp;#039;&amp;#039;etc.&amp;#039;&amp;#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Template documentation]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tommahs</name></author>
	</entry>
</feed>