EF4 LINQ Ordering Parent and all child collections with Eager Loading (.Include())
I am doing hierarchical data binding on a grid, and I need to have the database server perform the sorting on my objects. I can easily sort the parent collection, but I can't seem to figure out how to also sort all the child collections. I have a model which has child collections nested 3 deep, and all of these collections need to be sorted. Here is a sample model of what I'm trying to accomplish: public class Year { public int Id { get; set; } public string Name { get; set; } public List<Make> Makes { get; set; } } public class Make { public int Id { get; set; } public string Name { get; set;