graylog2-server
graylog2-server copied to clipboard
Content Pack Version sorting on Content Pack details page isn't sorting numerically
When viewing a content pack's detail page (/system/contentpacks/<guid>), the versions are listed in the versions section of this page. The sorting appears to be ascii/text sorting rather than numerical sorting.
When looking at the content pack with multiple versions, they are sorted as
- 10
- 8
- 9
Expected Behavior
Numeric sorting sorts numbers as
- 8
- 9
- 10
Current Behavior
Text sorting, sorting as
- 10
- 8
- 9
Possible Solution
Steps to Reproduce (for bugs)
- Upload multiple versions of a content pack that mix single digit and double digit versions/revisions
- View sorting on content pack details page
Context
This is a minor UX issue, not critical.
Your Environment
- Graylog Version: 4.3.4
- Java Version: 11.0.15
- Elasticsearch Version: Opensearch 1.3.4
- MongoDB Version: 4.4.15
- Operating System: Ubuntu Server 20.04 LTS
- Browser version: Chrome 103.0.5060.134
Happy to talk further with internal teams if there are any questions!