E ExcludeReality Active Member Licensed User Dec 8, 2009 #1 I have an arraylist with three items (all numbers). And I want to sort it by value so that I get the highest number at the top. It sounds so simple, but I haven't found a way to do it. Any ideas?
I have an arraylist with three items (all numbers). And I want to sort it by value so that I get the highest number at the top. It sounds so simple, but I haven't found a way to do it. Any ideas?
Erel B4X founder Staff member Licensed User Longtime User Dec 8, 2009 #2 B4X: ArrayList1.Sort(cNumbers) ArrayList1.Reverse
E ExcludeReality Active Member Licensed User Dec 8, 2009 #3 Thanks. I guess the result was wrong because I forgot to reverse