Link to home
Create AccountLog in
Avatar of poultarp
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
Avatar of atul_parmar
atul_parmar
Flag of India image

Hi
Use OnCompare event handler and provide your own comparision.
Atul
ASKER CERTIFIED SOLUTION
Avatar of Geert G
Geert G
Flag of Belgium image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer