From afadac93b6c973e2c5dced17be3bb02bb9af7c89 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Mon, 1 Sep 2008 19:53:36 +0000 Subject: [PATCH] (bug 15405) Sort yen correctly in sortable tables Patch by Mike Horvath. --- RELEASE-NOTES | 1 + skins/common/wikibits.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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; -- 2.20.1