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
{
Array.Sort(myArray, (p, q) => p[0].CompareTo(q[0]));
This will order the array in place (so at the end myArray will be sorted). LINQ OrderBy by comparison creates a new ordered enumerable that then you can convert to a ToArray.
myArray
OrderBy
ToArray