Skip to content

Not Sort Properly in my case #14

@hardipatel09

Description

@hardipatel09

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"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions