I am trying to sort the ListPart list. I tried listpart.sort(true) but it errors out. I checked the whole list to see if there were any anomalies but they are all numbers (2-4 digit)
B4X:
Sub FillArray(Search As Int)
If Search < 99 Then
partsList = su.LoadCSV(File.DirDocuments, "Database.txt", TAB)
Dim MyArray (partsList.size,24) As String
listpart.Initialize
lastx = partsList.Size -2
For i=0 To partsList.Size -2
Dummy = partsList.Get (i)
For j= 0 To 24
MyArray (i,j)= Dummy(j)
Next
listpart.Add(cs.Initialize.Font(fnt).Append(MyArray(i,Search)).PopAll)
Next
SearchIndex = Search
PickerPart.SetItems(0,listpart)
PickerPart.SetRowsHeight(40)
End If
End Sub