diff --git a/include/js/jquery.tablesorter.js b/include/js/jquery.tablesorter.js index 3b24b7647..090309456 100644 --- a/include/js/jquery.tablesorter.js +++ b/include/js/jquery.tablesorter.js @@ -728,6 +728,17 @@ type: "numeric" }); + ts.addParser({ + id: "digitmittausenderpunkt", + is: function(s) { + return /^[0-9.,]/.test(s); + }, + format: function(s) { + return $.tablesorter.formatFloat(s.replace('.',"")); + }, + type: "numeric" + }); + ts.addParser({ id: "integer", is: function(s,table) { @@ -743,10 +754,10 @@ ts.addParser({ id: "currency", is: function(s) { - return /^[£$€?.,]/.test(s); + return /^[£$€?.]/.test(s); }, format: function(s) { - return $.tablesorter.formatFloat(s.replace(new RegExp(/[^0-9.,]/g),"")); + return $.tablesorter.formatFloat(s.replace(new RegExp(/[^0-9.]/g),"")); }, type: "numeric" });