sorting a list of objects in c# code example
Example: sorting a list of objects in c#
List SortedList = objListOrder.OrderBy(o=>o.OrderDate).ToList();
List DescSortedList = objListOrder.OrderByDescending(o=>o.OrderDate).ToList();
List SortedList = objListOrder.OrderBy(o=>o.OrderDate).ToList();
List DescSortedList = objListOrder.OrderByDescending(o=>o.OrderDate).ToList();