Difference between revisions of "Help:Sorting"
From OutHistory
Jump to navigationJump to search (table) |
|||
Line 39: | Line 39: | ||
| 5'0" | | 5'0" | ||
|} | |} | ||
+ | |||
Sortable tables are identified by the arrows in each of its header cells. Clicking them will cause the table rows to sort based on the selected column, in ascending order first, and subsequently toggling between ascending and descending order. Links and other wiki-markup are not possible in headers. | Sortable tables are identified by the arrows in each of its header cells. Clicking them will cause the table rows to sort based on the selected column, in ascending order first, and subsequently toggling between ascending and descending order. Links and other wiki-markup are not possible in headers. | ||
+ | |||
+ | == See also: == | ||
+ | |||
+ | [http://en.wikipedia.org/wiki/Help:Sorting Sorting Help on Wikipedia] | ||
+ | |||
+ | [[Category:Help Pages]] |
Revision as of 09:15, 22 July 2008
Tables can be made sortable by typing class="sortable" in the first line of the table.
{| border= "1" class="sortable" ! Name ! Age ! Height |- | Joe | 14 | 5'3" |- | Sally | 39 | 6'1" |- | Bill | 89 | 5'0" |}
Which shows up like this on your web page:
Name | Age | Height |
---|---|---|
Joe | 14 | 5'3" |
Sally | 39 | 6'1" |
Bill | 89 | 5'0" |
Sortable tables are identified by the arrows in each of its header cells. Clicking them will cause the table rows to sort based on the selected column, in ascending order first, and subsequently toggling between ascending and descending order. Links and other wiki-markup are not possible in headers.