You can use LINQ:
using System.Linq;
IList<Foo> list = new List<Foo>();
IEnumerable<Foo> sortedEnum = list.OrderBy(f=>f.Bar);
IList<Foo> sortedList = sortedEnum.ToList();
More Related Contents:
- How to Sort a List by a property in the object
- List OrderBy Alphabetical Order
- DataGridView Using SortableBindingList
- How to capture value OOPS & Generic [closed]
- Create Generic method constraining T to an Enum
- Why can’t the C# constructor infer type?
- Can’t operator == be applied to generic types in C#?
- Nullable type as a generic parameter possible?
- Generic constraint to match numeric types [duplicate]
- Generic Method Executed with a runtime type [duplicate]
- Combination of List
- How do I sort a two-dimensional (rectangular) array in C#?
- Static Generic Class as Dictionary
- Get a generic method without using GetMethods
- Anonymous Types – Are there any distingushing characteristics?
- Accessing a property of derived class from the base class in C#
- How do I create a generic class from a string in C#? [duplicate]
- Get all types implementing specific open generic type
- Why does this generic constraint compile when it seems to have a circular reference
- Calling generic method with Type variable [duplicate]
- Case insensitive access for generic dictionary
- What does new() mean?
- Memory-constrained external sorting of strings, with duplicates combined&counted, on a critical server (billions of filenames)
- How to define generic type limit to primitive types?
- How can I write a generic anonymous method?
- Creating a generic method in C#
- The component does not have a resource identified by the uri
- C# generic methods, type parameters in new() constructor constraint
- How does Java’s use-site variance compare to C#’s declaration site variance?
- Convert DataTable to Generic List in C#