-
Notifications
You must be signed in to change notification settings - Fork 62
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
Alphanumeric, number first issue #8
Comments
Well, I've narrowed the problem down to this regex: re = /(^-?[0-9]+(\.?[0-9]*)[df]?e?[0-9]?$|^0x[0-9a-f]+$|[0-9]+)/gi I'm not sure what the If you remove the |
the d, f, e were for trying to tokenize decimal, float and scientific notation, i.e. '5e2' being 500. I'll see if I can make that regex a little "smarter" by maybe using a lookahead past the datatype identifier. I might just drop trying to tokenize on |
…fixes issue overset#8 Conflicts: naturalSort.js
I've found another issue with sorting alphanumeric numbers with the number first. Add this to the unit-test.html file:
And the resulting sort will look like this:
The text was updated successfully, but these errors were encountered: