Link to home
Start Free TrialLog in
Avatar of Rowdyone52
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?
Avatar of aumudin
aumudin
Flag of United States of America image

Avatar of Rowdyone52
Rowdyone52

ASKER

That doesnt use arraylists.
ASKER CERTIFIED SOLUTION
Avatar of Göran Andersson
Göran Andersson
Flag of Sweden image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
Excellent!  Thanks