I submitted a feature request to bugzilla (http://bugzilla.wikimedia.org/show_bug.cgi?id=2001) for client-side sorting of table fields with JavaScript, there are some bugs in it currently which I don't know how to fix.
You can see a testcase I uploaded here: http://bugzilla.wikimedia.org/attachment.cgi?id=471&action=view
wikitech-l@lists.wikimedia.org