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

Sort numbers as ints rather than strings #3617

Open
Aevaris opened this issue Feb 20, 2025 · 1 comment
Open

Sort numbers as ints rather than strings #3617

Aevaris opened this issue Feb 20, 2025 · 1 comment
Labels
feature User-facing features and product enhancements

Comments

@Aevaris
Copy link

Aevaris commented Feb 20, 2025

Describe the bug
Currently, it looks like model names are sorted solely as strings. It'd be nice if numbers were sorted as ints. Right now 14Kakuna sorts after 149dragonite (or if there was a way to mass add leading 0s).

To Reproduce
Steps to reproduce the behavior:

  1. Make a model named 14Kakuna and 149dragonite.
  2. See that Kakuna sorts before dragonite.

Expected behavior
14Kakuna sorts before 149dragonite.

@Aevaris Aevaris added the bug Something isn't working label Feb 20, 2025
@Floppy Floppy added feature User-facing features and product enhancements and removed bug Something isn't working labels Feb 20, 2025
@Floppy
Copy link
Collaborator

Floppy commented Feb 20, 2025

Changing to feature rather than bug, but yes, I agree, that's a good shout. At the moment all sorting is done by the database, I wonder if there's a way we can make it numeral-aware...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature User-facing features and product enhancements
Projects
Development

No branches or pull requests

2 participants