From 35169448068e979000669b1a22a4e9dda25f943a Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Sun, 20 May 2012 14:10:09 -0400 Subject: [PATCH] (bug 36991) Fix jquery.tablesorter date sorting jquery.tablesorter should extract date sort format from date string instead of global config. Dates like "April 1 2012" and "1 April 2012" now sort correctly regardless of the content language's DefaultDateFormat setting (exposed as wgDefaultDateFormat in mw.config). Previously jquery.tablesorter sorted dates like "1 Apr 2012" (DMY) or "Apr 1 2012" (MDY) incorrectly. It just converted it to "1 4 2012" and "4 1 2012", respectively, and then assumes MDY or DMY order based on the global wiki configuration. This patch fixes that. Change-Id: I8061b1a7892633e34be4d4a0273a4dd5045fd2ee --- RELEASE-NOTES-1.20 | 3 + resources/jquery/jquery.tablesorter.js | 77 ++++++++----------- .../jquery/jquery.tablesorter.test.js | 50 ++++++++++++ 3 files changed, 87 insertions(+), 43 deletions(-) diff --git a/RELEASE-NOTES-1.20 b/RELEASE-NOTES-1.20 index 03728e4705..755d703515 100644 --- a/RELEASE-NOTES-1.20 +++ b/RELEASE-NOTES-1.20 @@ -141,6 +141,9 @@ upgrade PHP if you have not done so prior to upgrading MediaWiki. * (bug 35082) mw.util.addPortletLink incorrectly adds link to mutiple