(bug 15422) Sort more types of numbers in sortable tables
authorAryeh Gregor <simetrical@users.mediawiki.org>
Wed, 3 Sep 2008 00:16:43 +0000 (00:16 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Wed, 3 Sep 2008 00:16:43 +0000 (00:16 +0000)
Patch based on one by Mike Horvath.

RELEASE-NOTES
skins/common/wikibits.js

index 75fafd9..bff5251 100644 (file)
@@ -116,6 +116,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   treated as regular expression fragments to match for when possibly
   displaying an external image inline.
 * (bugs 15405, 15436) Sort more currency types correctly in sortable tables
+* (bug 15422) Sort more different types of numbers in sortable tables
 
 === Bug fixes in 1.14 ===
 
index 717553c..4dbf5ba 100644 (file)
@@ -616,7 +616,7 @@ function ts_resortTable(lnk) {
        // pound dollar euro yen currency cents
        if (itm.match(/(^[\u00a3$\u20ac\u00a4\u00a5]|\u00a2$)/))
                sortfn = ts_sort_currency;
-       if (itm.match(/^[\d.,]+\%?$/))
+       if (itm.match(/^[\d.,eE+-]+\%?$/))
                sortfn = ts_sort_numeric;
 
        var reverse = (span.getAttribute("sortdir") == 'down');