Sort an arraylist

I

Its me Earnest T.

I have a class that looks like

Public Class Number
Public Index As Int16
Public Appears As Int16
Public Ratio As Single
Public Sub New(ByVal index As Int16, ByVal appears As Int16, ByVal ratio
As Single)
Me.Index = index
Me.Appears = appears
Me.Ratio = ratio
End Sub

I have an arraylist that stores 50+ of these classes. I need to sort this
arraylist by Ratio. Can someone point me to an example of this other than
the microsoft example
http://msdn.microsoft.com/library/d...fsystemcollectionsarraylistclasssorttopic.asp
which shows how to sort just one thing inside the arraylist.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top