2024-12-05 How to Sort a List<T> by a property in the object
How to Sort a List<T> by a property in the object, the easiest way is to use Linq:
List<Order> SortedList = objListOrder.OrderBy(o=>o.OrderDate).ToList();
Reference
https://stackoverflow.com/questions/3309188/how-to-sort-a-listt-by-a-property-in-the-object
TAGS
6 person(s) visited this page until now.
Back