I have a 2d array of strings
string [] [] myArray;
and I want to sort it by one of the columns.
So the data might be
{ "Apple", "2", "Bob" },
{ "Banana", "1", "Fred" }
And I want to sort it by any of those columns - I'll have an index.
Ideally, I'd like to do something like myArray.Sort(1);
I understand I may have to use a custom comparer. I see this as an interesting learning opportunity. Can anyone offer some advice?