Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

List<T>.Sort Method

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.

  NameDescription
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Sort() Sorts the elements in the entire List<T> using the default comparer.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Sort(IComparer<T>) Sorts the elements in the entire List<T> using the specified comparer.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Sort(Comparison<T>) Sorts the elements in the entire List<T> using the specified System.Comparison<T>.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Sort(Int32, Int32, IComparer<T>) Sorts the elements in a range of elements in List<T> using the specified comparer.
Top

Community Additions

ADD
Show:
© 2015 Microsoft