We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In Italy we have number like this
11.234,99
there's a way? good job!
The text was updated successfully, but these errors were encountered:
Hi @pfloriginale!
You'd need to add a custom parser - demo
$.tablesorter.addParser({ id: 'number', is: function() { return false; }, format: function(s) { var str = $.trim(s.replace(/[\s.]/g, '').replace(/,/g, '.')); var num = parseFloat(str); return isNaN(num) ? s : num; }, type: 'numeric' }); $('table').tablesorter({ headers: { 0: {sorter: 'number'} } });
If you're using my fork of tablesorter, then you'd need to set usNumberFormat to false (demo)
usNumberFormat
false
$(function() { $('table').tablesorter({ theme: 'blue', usNumberFormat: false }); });
Sorry, something went wrong.
No branches or pull requests
In Italy we have number like this
11.234,99
there's a way?
good job!
The text was updated successfully, but these errors were encountered: