-
Notifications
You must be signed in to change notification settings - Fork 490
New issue
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
Comma formatted currency doesn't sort. #43
Comments
I found a few examples on SO like this: http://stackoverflow.com/questions/13401316/tablesorter-sorting-number-with-commas-in-them But making any change to the table sorter through this method: $("table").tablesorter({ Breaks the script and only lets me sort once and then it's stuck and wont react to me clicking on the headers. Console debugger has no output. Any ideas? Edit: as a clarificaiton, it will let me sort still, but ALL of my columns will only sort from largest to smallest.
|
@golevel You don't need to add a new parser, just to ignore commas when dealing with currencies. See the above pull request for the fix. |
With my pull request you can set the decimal and thousand character. The default is comma, so it might work without any problem. |
I've got some values like
$955,555
$933,000,000
And it sorts in that order, even though the second number is larger, but the first number appears larger if you dont count what's after the comma. How do I resolve this?
The text was updated successfully, but these errors were encountered: