From 04ec333d56e661d401f970829f34b30c5d9f767d Mon Sep 17 00:00:00 2001 From: Ilmari Karonen Date: Sat, 30 Dec 2006 01:10:47 +0000 Subject: [PATCH] stabilize sorttable.js even if the underlying Javascript sort() is unstable --- RELEASE-NOTES | 3 +- skins/common/sorttable.js | 61 ++++++++++++++++++++++++--------------- 2 files changed, 39 insertions(+), 25 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 9896ccff64..d06bdaf1ef 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -431,7 +431,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 8018) Allow hiding minor edits from the watchlist * (bug 8427) MonoBook RTL IE 7.0 tweaks failed when sidebar's navigation section is renamed; no longer relies on first section name - +* Stabilize client-side table sorting even if the underlying Javascript sort() + implementation is unstable == Languages updated == diff --git a/skins/common/sorttable.js b/skins/common/sorttable.js index c5f167a85b..28a06e610c 100644 --- a/skins/common/sorttable.js +++ b/skins/common/sorttable.js @@ -5,7 +5,6 @@ hookEvent( "load", sortables_init); -var SORT_COLUMN_INDEX; var NO_ARROW = stylepath+'/common/sort_none.gif'; var UP_ARROW = stylepath+'/common/sort_up.gif'; var DOWN_ARROW = stylepath+'/common/sort_down.gif'; @@ -69,6 +68,8 @@ function ts_resortTable(lnk) { for (var ci=0;ci