I have 2 list objects, one is just a list of ints, the other is a list of objects but the objects has an ID property.
What i want to do is sort the list of objects b
One way of doing it:
List order = ....; List items = ....; Dictionary d = items.ToDictionary(x => x.ID); List ordered = order.Select(i => d[i]).ToList();