how do I sort a collection with child property?
I should sort parent based on a field of child. sample code; IQueryable<Parent> data = context.Parents.Include(o=>o.Children); //Child has a member (string) Name. question: how can I sort Parent by Children Names. Your question is somewhat confusing, since first of all, it is tagged both with Entity Framework and LINQ-to-SQL. Which ORM are your actually using? Secondly, and more to the point, you say that you want to "sort Parent by Children Names" . Which child name do you want to sort by? You do realize that you can't compare a list of names to another list of names and decide which one