how do I sort a collection with child property?

Viewed 20958

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.

2 Answers
Related