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

Not Sort Properly in my case #14

Open
hardipatel09 opened this issue Jul 18, 2024 · 0 comments
Open

Not Sort Properly in my case #14

hardipatel09 opened this issue Jul 18, 2024 · 0 comments

Comments

@hardipatel09
Copy link

hardipatel09 commented Jul 18, 2024

After using NaturalSorter, it is not given output as expected.
teams = Teams.last(10)
teams.sort_by { |team| Naturalsorter::Sorter.sort([team.name],true) }
Output: ["Is Pool", "New team dev", "Station 10A", "Station 10B", "Station 5A", "Station 5B", "Team thanks", "Testing User", "Uses Pool", "Zero Team"]
Expected: ["Is Pool", "New team dev", "Station 5A", "Station 5B", "Station 10A", "Station 10B", "Team thanks", "Testing User", "Uses Pool", "Zero Team"]

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