Here’s the LINQ to order sam
by the first item of the list
property (I gather that’s what you’re after, right?):
IEnumerable<sample> orderedSam = sam.OrderBy(item => item.list.FirstOrDefault());
2
solved How to sort an IEnumerable object by a nested IEnumerable object? [duplicate]