The sortable table we have in wikibits.js is an old version of the script.
http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/wikibits.js?view=markup#l517
We should:
- Check if we made any adjustments to it
- if so, do we still need them or are they fixed upstream in the mean time ?
- Check out the latest version to see if it broke anything (ie. if it still supports class="unsortable", and <th> as head in a <tr> and not require <thead>)
- Rewrite that new version [1] in an object so we can easily put it somewhere in /resources/ without conflicting with names of the legacy version in wikibits.js or otherwise polluting the global/window namespace.
- Do some testing to verify that existing tables work fine
- Remove the old script and the sortables_init-call from wikibits.js
- Load the new script by default and call the Init() of it
[1] http://yoast.com/articles/sortable-table/
Tags: window.ts tablesort sortable table wikitable
Version: 1.18.x
Severity: enhancement