FANDOM


(Created page with "You don't have to write any code, it's all already done by javascript included with wikia. You need to add "sortable" to the table class list, like this: {{{!}} class="wiki...")
 
Line 5: Line 5:
 
then each column header needs a data-sort-type attribute, which is probably going to be "number".
 
then each column header needs a data-sort-type attribute, which is probably going to be "number".
   
| Rank | data-sort-type="number"
+
{{!}} Rank {{!}} data-sort-type="number"
   
 
and the rest should be automatic.
 
and the rest should be automatic.

Revision as of 00:36, December 1, 2018

You don't have to write any code, it's all already done by javascript included with wikia. You need to add "sortable" to the table class list, like this:

then each column header needs a data-sort-type attribute, which is probably going to be "number".
data-sort-type="number"

and the rest should be automatic.

A B
 ...rows...

http://community.wikia.com/wiki/Help:Sorting

Community content is available under CC-BY-SA unless otherwise noted.