graylog2-server icon indicating copy to clipboard operation
graylog2-server copied to clipboard

Content Pack Version sorting on Content Pack details page isn't sorting numerically

Open drewmiranda-gl opened this issue 3 years ago • 1 comments

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)

  1. Upload multiple versions of a content pack that mix single digit and double digit versions/revisions
  2. 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

drewmiranda-gl avatar Aug 05 '22 16:08 drewmiranda-gl

Happy to talk further with internal teams if there are any questions!

drewmiranda-gl avatar Aug 05 '22 16:08 drewmiranda-gl