I know there's been a lot of questions and answers but neither applies to my problem. I have a jagged array that I'd like to sort by the values in array b, c and d:
string[][] toBeSorted = new string[][] { a, b, c, d, e, f, g, h, i, j};
This only sorts by "rows"
toBeSorted = toBeSorted.OrderBy(inner => inner[2]).ToArray();
I have tried Array.Sort(c.ToArray(), b) and similar approaches but they mixed the whole selection in case of multiple valued sorting
So now when I have values in toBeSorted like "John", "Smith", "New York", etc.
I'd like to have my array sorted by the "cities", "surnames" and for example by the values in array g at last. So the values are a = names, b = surnames, etc.
I am .NET 3.5 dependent in my scenario.
Thank you.
b,c,darrays?