(bug 15405) Sort yen correctly in sortable tables
authorAryeh Gregor <simetrical@users.mediawiki.org>
Mon, 1 Sep 2008 19:53:36 +0000 (19:53 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Mon, 1 Sep 2008 19:53:36 +0000 (19:53 +0000)
Patch by Mike Horvath.

RELEASE-NOTES
skins/common/wikibits.js

index a6f5249..9886635 100644 (file)
@@ -112,6 +112,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Added an on-wiki external image whitelist. Items in this whitelist are
   treated as regular expression fragments to match for when possibly
   displaying an external image inline.
+* (bug 15405) Sort yen correctly in sortable tables
 
 === Bug fixes in 1.14 ===
 
index a762ae5..5348dfc 100644 (file)
@@ -614,7 +614,7 @@ function ts_resortTable(lnk) {
                sortfn = ts_sort_date;
        if (itm.match(/^\d\d[\/.-]\d\d[\/.-]\d\d$/))
                sortfn = ts_sort_date;
-       if (itm.match(/^[\u00a3$\u20ac]/)) // pound dollar euro
+       if (itm.match(/^[\u00a3$\u20ac\u00a5]/)) // pound dollar euro yen
                sortfn = ts_sort_currency;
        if (itm.match(/^[\d.,]+\%?$/))
                sortfn = ts_sort_numeric;