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 request, and I want to use a custom Comparer for the CustomField property. Is there a way to do this in bipolar order?
I can do it:
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.
source
share