Rowdyone52
asked on
Sort Arraylist of String[]
I have an arraylist that contains string [] objects. The arraylist looks like
arraylist.add(new string [] {name, phone});
How can I sort the arraylist by name?
arraylist.add(new string [] {name, phone});
How can I sort the arraylist by name?
ASKER
That doesnt use arraylists.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
It's pretty easy to do if you write your own IComparer. There's an example of how to do that here:
http://msdn2.microsoft.com/en-us/library/0e743hdt.aspx
Jim
http://msdn2.microsoft.com/en-us/library/0e743hdt.aspx
Jim
ASKER
Excellent! Thanks
Let me know if that helps