How to Sort a List<T> by a property in the object in LINQ

How to Sort a List<T> by a property in the object in LINQ

Order a list is to use OrderBy

List<Order> objListOrder = 
    source.OrderBy(order => order.OrderDate).ToList();

2020-03-24