Sign up and we'll send you the best freelance opportunities straight to
your inbox.
We're building the largest self-service freelancing marketplace for people like you.
How to sort a C# List<T> by a property in the object.
Use a Linq OrderBy() extension method, like so:
var orders = new List<Order>();
var sortedList = orders.OrderBy(o => o.OrderDate).ToList();