Help:Introduction to tables with Wiki Markup/3
Appearance
Introduction to tables
How and why
Editing tables
The basics
Expanding tables
Adding rows and columns
Summary
Review of what you've learned
Tables can be made sortable by adding the wikitable sortable
class to the top of the table:
{| class="wikitable sortable" |- ! Name ! Data ! More data |- | cats | 273 | 53 |- | dogs | 65 | 8,492 |- | mice | 1,649 | 548 |}
Name | Data | More data |
---|---|---|
cats | 273 | 53 |
dogs | 65 | 8,492 |
mice | 1,649 | 548 |
Clicking on the up/down arrows in a column header will sort the column; clicking again will reverse the sort. Text is sorted alphabetically. Numbers are sorted numerically. Mixed data is sorted alphabetically.
For advanced sort options, see Help:Sorting.