How to sort a List<T> by double value?
This sound simple but it not that much. I want to order a List based on one of the properties of T, which is double type. If you know the propertyname before compilation: myList = myList.OrderBy(a=>a.propertyName).ToList(); or myList = (from m in myList order by m.propertyName).ToList(); If you don't have the property at compile time (e.g. dynamic sorting in a grid or something); try the following extension methods: static class OrderByExtender { public static IOrderedEnumerable<T> OrderBy<T>(this IEnumerable<T> collection, string key, string direction) { LambdaExpression sortLambda =