Check out example codes for "sorting a list of objects in c#". It will help you in understanding the concepts better.

Code Example 1

List<Order> SortedList = objListOrder.OrderBy(o=>o.OrderDate).ToList();
List<Order> DescSortedList = objListOrder.OrderByDescending(o=>o.OrderDate).ToList();

Learn ReactJs, React Native from akashmittal.com