List<MyObject> objects = (from a in alist
join b in blist on a.ID equals b.ID
where a.Number != 4
orderby b.Rank, a.CustomField
select a).ToList();
This is my query and I want to use a custom Comparer for the CustomField property. Is there a way to do that in a two-field orderby?
I am able to do this:
List<MyObject> objects = objects.OrderBy(a => a.CustomField, new MyComparer<object>())
but I need it to be sorted by both s.Rank and a.CustomField.