Search results
Results from the WOW.Com Content Network
A dash after a number no longer breaks default numerical sorting of a column. Therefore, a range (30–40) now works. A plus sign after a number breaks default numerical sorting if it is in one of the first 5 cells in a column. A plus sign in an otherwise empty cell breaks default numerical sorting of a column.
Adding data-sort-type="number" to the relevant column header solves many numerical sorting problems. See Help:Sortable tables § Forcing a column to have a particular data type . This template can be useful when building a sortable table in which a column contains both numbers and text.
Module:Sort table This template extends the functionality of {{ sort list }} to tables, so that tables in articles can be set with a default sorting, and have their rows manually shuffled around every time their data is updated.
This template is for manually adjusting sorting order in sortable tables by specified sortkeys. Usage {{Sort | 1 = {{{sort value}}} | 2 = {{{displayed value}}} }} → {{{displayed value}}} The first parameter is the sortkey; the second parameter is the wikitext of what has to be displayed. By default, this is the sortkey with link brackets:
Mixed types of data in a column don't sort right. For example, in a column that's for calendar dates, don't put "Unknown" where a date isn't known. Just leave the cell blank. Numbers aren't displayed correctly. The sorting algorithm isn't thrown off by commas or decimal places, but it doesn't insert missing commas, or align a column of numbers ...
If a table is created in Visual Editor, the dialog includes a checkbox to "Make table sortable". If you check this box, then a reader can sort the table by any column, by clicking on the header cell for that column. Existing tables, or tables created in wikitext can be made sortable by adding the wikitable sortable class to the top of the table:
Get AOL Mail for FREE! Manage your email like never before with travel, photo & document views. Personalize your inbox with themes & tabs. You've Got Mail!
This category contains templates used in table rows of sortable tables, often to provide a hidden sort key (marked with the data-sort-value attribute), and/or to force a particular sort mode. The pages listed in this category are templates .