Android Question Sorttype question, order within the sorted list

boten

Active Member
Licensed User
Longtime User
B4X:
Type typ(Val as int,Name as string)

When using lst.Sorttype("Val",True) if lst contains multiple items with the same Val

eg:
(5,"abc")
(1,"xyz")
(1,"tuv")
(5,"ghj")

will the resulting sorted list keep the "original order" of items with identical sort filed?
in other words, relating to the list above, will the sorted list be:
(1,"xyz")
(1,"tuv")
(5,"abc")
(5,"ghj")


Even "reverse original order" is accpted, e:g
(1,"tuv")
(1,"xyz")
(5,"ghj")
(5,"abc")

or is there no guarantee of the order within the same sort-field?
 
Top