cbanks Active Member Licensed User Longtime User Nov 26, 2014 #1 How do I sort the lines in a CustomListView? I use the code below to create/add the items to the listview: B4X: For Each Line As String In File.ReadList(File.DirLibrary, "History.txt") clv2.Add(CreateListItem(Line, clv2.AsView.Width, 50dip), 50dip, "") Next
How do I sort the lines in a CustomListView? I use the code below to create/add the items to the listview: B4X: For Each Line As String In File.ReadList(File.DirLibrary, "History.txt") clv2.Add(CreateListItem(Line, clv2.AsView.Width, 50dip), 50dip, "") Next
Erel B4X founder Staff member Licensed User Longtime User Nov 26, 2014 #2 B4X: Dim lines As List = File.ReadList(...) lines.Sort(True) For Each Line As String in lines ... Next Upvote 0
B4X: Dim lines As List = File.ReadList(...) lines.Sort(True) For Each Line As String in lines ... Next