List<T>.Sort Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Include Protected Members
Include Inherited Members
Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members
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.
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. |
Top