How to sort the List of a List<Arraylist>

  • Thread starter Thread starter AnotherRob
  • Start date Start date
A

AnotherRob

Guest
Hi,

Is it possible to sort a list on the first element of the arraylist?

List<ArrayList> Unsorted = new List<ArrayList>();


The list "Unsorted" above contains arrays and each array starts with a unique ID, I would like to sort the list on the ID that is always the first element in the array. So all the array's look like [ID],[Name],[Function], and so on. I now have a seperate array to keep track of the list items and the ID's of the array's and I would like to get rid of it.

Thanks in advance.

Regards,

Rob.

Continue reading...
 
Back
Top