From 25ed55a1d3cec8a682fd47934afa8d30da04d7a9 Mon Sep 17 00:00:00 2001 From: Doug Johnston Date: Tue, 14 Oct 2014 11:43:10 -0700 Subject: [PATCH] Ignore commas when sorting by currency --- jquery.tablesorter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.tablesorter.js b/jquery.tablesorter.js index c5eabf0..3b7e750 100644 --- a/jquery.tablesorter.js +++ b/jquery.tablesorter.js @@ -909,7 +909,7 @@ is: function (s) { return /^[£$€?.]/.test(s); }, format: function (s) { - return $.tablesorter.formatFloat(s.replace(new RegExp(/[£$€]/g), "")); + return $.tablesorter.formatFloat(s.replace(new RegExp(/[£$€,]/g), "")); }, type: "numeric" });