You can add them to a list, then sort the list. See code below:
B4X:
Dim B1 = 20 As Int
Dim B2 = 50 As Int
Dim B3 = 10 As Int
Dim B() As Int=Array As Int(B1,B2,B3)
Dim MyList As List
MyList.Initialize
MyList.AddAll(B)
MyList.Sort(True)
For i=0 To MyList.Size-1
Log(MyList.Get(i)) 'displays 10,20,50
Next
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.