List<T>.Sort Method
.NET Framework 4.5
Sorts the elements in the List<T> or a portion of it.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
| Name | Description | |
|---|---|---|
|
Sort() | Sorts the elements in the entire List<T> using the default comparer. |
|
Sort(Comparison<T>) | Sorts the elements in the entire List<T> using the specified System.Comparison<T>. |
|
Sort(IComparer<T>) | Sorts the elements in the entire List<T> using the specified comparer. |
|
Sort(Int32, Int32, IComparer<T>) | Sorts the elements in a range of elements in List<T> using the specified comparer. |