poultarp
asked on
Sorting ListView by column clicks
Hi
I have a ListView with some columns containing string and other columns containing integers. I know which columns that contains numbers and which ones that contains strings.
If I use the AlphaSort command to sort the contents of the columns when a column header is clicked, it works fine when I click on columns containing strings, but when I click on a column containing integers the is sorted like this: 13,12,11,10,1,2,3,4,5,6,7, 8,9 (if the column contains the numbers 1-13).
Is there a command similar to AlphaSort which sorts the column numerically?
Regards
Søren Augustesen
I have a ListView with some columns containing string and other columns containing integers. I know which columns that contains numbers and which ones that contains strings.
If I use the AlphaSort command to sort the contents of the columns when a column header is clicked, it works fine when I click on columns containing strings, but when I click on a column containing integers the is sorted like this: 13,12,11,10,1,2,3,4,5,6,7,
Is there a command similar to AlphaSort which sorts the column numerically?
Regards
Søren Augustesen
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Use OnCompare event handler and provide your own comparision.
Atul