Skip to content

Commit

Permalink
changed parser order for better detection - fixes issue #64
Browse files Browse the repository at this point in the history
  • Loading branch information
Mottie committed May 8, 2012
1 parent b67fb88 commit 13200fd
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions js/jquery.tablesorter.js
Original file line number Diff line number Diff line change
Expand Up @@ -915,17 +915,6 @@
type: "text"
});

ts.addParser({
id: "digit",
is: function(s) {
return $.tablesorter.isDigit(s);
},
format: function(s, table) {
return $.tablesorter.formatFloat(s.replace(/[^\w,. \-()]/g, ""), table);
},
type: "numeric"
});

ts.addParser({
id: "currency",
is: function(s) {
Expand Down Expand Up @@ -1036,6 +1025,17 @@
type: "numeric"
});

ts.addParser({
id: "digit",
is: function(s) {
return $.tablesorter.isDigit(s);
},
format: function(s, table) {
return $.tablesorter.formatFloat(s.replace(/[^\w,. \-()]/g, ""), table);
},
type: "numeric"
});

ts.addParser({
id: "metadata",
is: function(s) {
Expand Down

0 comments on commit 13200fd

Please sign in to comment.