Link to home
Start Free TrialLog 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
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial