Permalink
Browse files

fixed currency parser

  • Loading branch information...
1 parent f4701e2 commit 532aa16f318d9c30075450509775b101785b59b5 @Mottie committed Sep 16, 2011
Showing with 13 additions and 4 deletions.
  1. +4 −0 README.markdown
  2. +5 −0 changelog.txt
  3. +2 −2 js/jquery.tablesorter.js
  4. +2 −2 js/jquery.tablesorter.min.js
View
@@ -28,6 +28,10 @@ Included all original [document pages](http://mottie.github.com/tablesorter/docs
View the [complete listing here](http://mottie.github.com/tablesorter/changelog.txt).
+#### Version 2.0.20.1 (2011-09-16)
+
+* Oops fixed currency sorting
+
#### Version 2.0.20 (2011-09-16)
* Filter Widget
View
@@ -1,5 +1,10 @@
TableSorter Change Log
+Version 2.0.20.1 (2011-09-16)
+============================
+
+* Oops fixed currency sorting
+
Version 2.0.20 (2011-09-16)
============================
View
@@ -1,6 +1,6 @@
/*
* TableSorter 2.0 - Client-side table sorting with ease!
-* Version 2.0.20
+* Version 2.0.20.1
* @requires jQuery v1.2.3
*
* Copyright (c) 2007 Christian Bach
@@ -843,7 +843,7 @@
return (/^[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]/).test(s); // £$€¤¥¢?.
},
format: function(s){
- return $.tablesorter.formatFloat(s.replace(new RegExp(/[^0-9., \-]/g), ""));
+ return $.tablesorter.formatFloat(s.replace(/\,/g,'.').replace(new RegExp(/[^0-9. \-]/g), ""));
},
type: "numeric"
});

Large diffs are not rendered by default.

Oops, something went wrong.

0 comments on commit 532aa16

Please sign in to comment.