I have a query:
topics.OrderBy(x => x.Replies.Any() ? x.Replies.OrderBy(y => y.PostedDate).Last().PostedDate : x.PostedDate);
It sorts th
IEnumerable : LINQ to Object and LINQ to XML.
IQueryable : LINQ to SQL