How do I sort an array of List<string> by length of string using Linq? The efficiency of execution does not matter.
List<string>[] col = new List<string>[]
{
new List<string>(){"aaa", "bbb"},
new List<string>(){"a", "b", "d"},
new List<string>(){"xy","sl","yy","aq"}
}; //Each string in a list of strings of a particular array element has equal length.
After sorting should produce
{"a", "b", "d"}, {"xy","sl","yy","aq"}, {"aaa", "bbb"}
col.OrderBy(x => x.Sum(y => y.Length)).ToList();