Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

List.Sort Method

Sorts the elements in the List or a portion of it.

Name Description
List.Sort () Sorts the elements in the entire List using the default comparer.

Supported by the .NET Compact Framework.

List.Sort (Generic Comparison) Sorts the elements in the entire List using the specified System.Comparison.

Supported by the .NET Compact Framework.

List.Sort (Generic IComparer) Sorts the elements in the entire List using the specified comparer.

Supported by the .NET Compact Framework.

List.Sort (Int32, Int32, Generic IComparer) Sorts the elements in a range of elements in List using the specified comparer.

Supported by the .NET Compact Framework.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft