Skip to content

Use human sort rather than alphabetical sort for Warpgate targets #1632

@LarsSven

Description

@LarsSven

Warpgate uses alphabetical sort in its UI. This sorts weirdly when using numbers in your target names. An example from our usecase:

Image

This can be solved by using human sort which splits strings into numbers and text, and sorts the numbers using number sort rather than alphabetical sort. natord is likely the best / most efficient crate for this task.

I'm willing to contribute this change, I plan to make a PR myself sometime in the coming weeks.

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