Hi guys, i was wondering if there's any way to sort the items in a ListView, for example if I have a list with different numbers and they are not in order, how can i sort the items in the list from lower to highest number?
Dim MyListView As ListView
Dim List1 As List
list1.Initialize
For l = 0 To 100
list1.Add("Your data here.." & (100-l)) 'Data and number high to low
Next
list1.Sort(True) 'puts them in order low to high
For l = 0 To 100
MyListView.AddSingleLine(list1.Get(l))
Next
'Your listview is now sorted
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.