From: Aryeh Gregor Date: Mon, 1 Sep 2008 19:53:36 +0000 (+0000) Subject: (bug 15405) Sort yen correctly in sortable tables X-Git-Tag: 1.31.0-rc.0~45527 X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28%27votes%27%2C%20votes=%27waiting%27%29%20%7D%7D?a=commitdiff_plain;h=afadac93b6c973e2c5dced17be3bb02bb9af7c89;p=lhc%2Fweb%2Fwiklou.git (bug 15405) Sort yen correctly in sortable tables Patch by Mike Horvath. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index a6f5249f92..988663543e 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/skins/common/wikibits.js b/skins/common/wikibits.js index a762ae56e9..5348dfce07 100644 --- a/skins/common/wikibits.js +++ b/skins/common/wikibits.js @@ -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;