Skip to main content
Open

Alphanumeric sorting

Related products:Windows GUI
  • March 25, 2021
  • 1 reply
  • 59 views

We often have columns containing alphanumeric characters. The sorting on this value is is 'string' based, so i.e. the sorting is then as following:

  • P1
  • P10
  • P2
  • P3

Where as a user would expect some alphanumeric sorting:

  • P1
  • P2
  • P3
  • P10

We currently work-around on this by having an extra hidden sorting column filling the numbers (P0000001) and then apply string sorting on the hidden column. However, when the user clicks on the column, the alphanumeric sorting disappears.

Maybe a suggestion for this problem would be to assign a 'sorting column' to columns if necessary. This column must be a hidden column. Or just tag columns as ‘alpha numeric’. I.e. the column 'name' should be sorted based on the value of the column 'name_sort', which must be / or can be hidden.

Did this topic help you find an answer to your question?

Jeroen van den Belt
Administrator
Forum|alt.badge.img+9
Updated idea status NewOpen


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings