On November 6th, 2024, the 9,000th article was added to the SuccuWiki!
Help:Sorting: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (added Category:Help Pages using HotCat) |
||
Line 8: | Line 8: | ||
==Browser issues== | ==Browser issues== | ||
With older versions of Safari a table can only be sorted by the first column: all sort buttons have the effect that only the leftmost one is supposed to have. | With older versions of Safari a table can only be sorted by the first column: all sort buttons have the effect that only the leftmost one is supposed to have. | ||
[[Category:Help Pages]] |
Latest revision as of 03:45, 1 January 2013
Tables can be made sortable via client-side JavaScript.
A sortable table is 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.
JavaScript source
The JavaScript code is found at //succubus.net/skins-1.5/common/wikibits.js. In addition, MediaWiki:Common.js adds and overrides some code.
Browser issues
With older versions of Safari a table can only be sorted by the first column: all sort buttons have the effect that only the leftmost one is supposed to have.