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
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Sort() Sorts the elements in the entire List<T> using the default comparer.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Sort(Comparison<T>) Sorts the elements in the entire List<T> using the specified System.Comparison<T>.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Sort(IComparer<T>) Sorts the elements in the entire List<T> using the specified comparer.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Sort(Int32, Int32, IComparer<T>) Sorts the elements in a range of elements in List<T> using the specified comparer.

Top