You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for catching this! I can definitely see use cases with 0 left padded numbers that start with another character. I just did a quick test with your changes against the existing the unit-tests.html and it's breaking a couple of other sorts that should work. Let me try and go off your A02 and A012 example, build a few test cases and see if I can get something to work for all the test cases. On that note - have any other ideas on what I can ensure this will sort properly so I can build some more test cases..?
DOH, I forgot to check the unit tests! I haven't run into any other cases that don't work correctly, but I'll be sure to post an issue if I do run into any.
Hi, I've been using your Natural Sort to replace the sorting algorithm in my fork of jQuery tablesorter
But if you check out the first column of this demo you'll see that
A02
andA012
don't sort correctlyI've found that if I change line 29 & 30 to the following, it works properly:
Edit: here is a simplified version : http://jsfiddle.net/Mottie/LannP/
The text was updated successfully, but these errors were encountered: