Skip to content
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

The sorting does not take care of periods/decimal points #6

Open
MonikaMahanthappa opened this issue Jun 29, 2016 · 0 comments
Open

Comments

@MonikaMahanthappa
Copy link

MonikaMahanthappa commented Jun 29, 2016

Not working in case of %w(a b 1 3 1.3).natural_sort results in ["1.3", "1", "3", "a", "b"]

But it is working for ["a", "b", "1", "3", "1.3", "a 1 b 10", "a 1 b 2"] . This input results in ["1", "1.3", "3", "a", "a 1 b 2", "a 1 b 10", "b"]

Would like to know if there is a way to archive natural sorting for decimal numbers or is it an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant