Hi, I have a one-to-many Linq query and I would like to sort on a property within the "many" collection. For example in the pseudo-code below, I am returned a List from the Linq query but I would like to sort / order the Products property based on the SequenceNumber property of the Product class. How can I do this? Any information is appreciated. Thanks.
public class Order
{
public int OrderId;
public List<Product> Products;
}
public class Product
{
public string name;
public int SequenceNumber;
}