sort

  1. H

    B4J Code Snippet Sort and Search Lists in Any Arbitrary Way

    In B4X it is easy to sort a List in any arbitrary way, thanks to the fact that we can simply pass the name of a function anywhere. I am using a non-recursive search here, because I had to sort lists with hundreds of thousands of items. The sorting is quite fast, good enough for sure. B4J is...
  2. A

    Android Question Sort a List of Type with multiple criterias [SOLVED]

    Hello All, I'm looking to sort a List of Type with multiple criterias. As far as I understand, List.SortType(), is capable to sort only one criteria. So, how to do such kind of multiple sort? Example (expected behavior) Type(Val1 as String, Val2 as String, Val3 as Int) all type values are...
  3. MarkusR

    Android Question [solved] how to use the List.Sort ??? (issue with utf-8 byte order mark from notepad editor)

    i have a textfile in utf-8 and this code but the list is not sorted. (7.80) i put a A at top of the file and a Z an the end. Dim problems As List = File.ReadList(File.DirAssets,"problems.txt") problems.Sort(True) Dim i As Int For i = 0 To problems.Size-1...
Top