How to Sort Integer property of item in List<> [closed]
- by Lucifer
Possible Duplicate:
List<> own comparer
Hi
If I have a list of:
class Product
{
public int Id;
public string Name;
public int OrderId;
}
List<Product> products;
How can I Sort by the OrderId?
Thanks