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

Custom Fields - incorrect sort order for numerical #15458

Closed
2 tasks done
pogovault opened this issue Sep 6, 2024 · 2 comments
Closed
2 tasks done

Custom Fields - incorrect sort order for numerical #15458

pogovault opened this issue Sep 6, 2024 · 2 comments

Comments

@pogovault
Copy link

pogovault commented Sep 6, 2024

Debug mode

Describe the bug

custom fields of numerical type are sorted in table alphabetically instead of numeric order

Reproduction steps

  1. create custom field i.e "Monitors", FormElement: Text Box, Format: NUMERIC
  2. add it to fieldset (or create a new one), add that fieldset to asset model and create five new assets
  3. fill in "Monitors" with numbers 4, 8, 32, 1, 16
  4. list all assets and in table sort by "Monitors", (ascending)
    ...

Expected behavior

The assets should be sorted in ascending order (1, 4, 8, 16, 32). Instead they are sorted in alphabetical order (1, 16, 32, 4, 8).

Screenshots

not sorted:
noSort

ascending sort:
ascending

Snipe-IT Version

7.0.11

Operating System

Ubuntu (docker)

Web Server

Apache

PHP Version

8.1.2-1ubuntu2.18

Operating System

Windows 10

Browser

Chrome

Version

128.0.6613.120

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

No response

Additional context

No response

Copy link

welcome bot commented Sep 6, 2024

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@snipe
Copy link
Owner

snipe commented Sep 9, 2024

Duplicate of #11634

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

2 participants