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 ListViewDim List1 As List
list1.Initialize
For l = 0To100
list1.Add("Your data here.." & (100-l)) 'Data and number high to lowNext
list1.Sort(True) 'puts them in order low to highFor l = 0To100
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.