Author: icm63 | Posted on: 9/7/2009 1:54:50 PM | Views : 282

 I need to be able to sort an array list that has data like this
8,5,10,2
When I Arraylist.sort() I get
8,5,2,10
When I wanted
10,8,5,2
I have this class, that does strings, but I need a numeric overloads function that does pure numbers ( like 10,1,-5,1.5,-2.5) sort in an arraylist to SORT ASC or DESC ??
Public Class RTT_AListReverse Implements IComparer Public Function Compare(ByVal x As Object, ByVal y As Object) As Integer _ Implements IComparer.Compare Return New CaseInsensitiveComparer().Compare(y, x) End Function End Class
 
 
...

Go to the complete details ...