Windows apps
Collapse the table of content
Expand the table of content
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.

Array.Sort Method

 

Sorts the elements in a one-dimensional array.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticSort(Array)

Sorts the elements in an entire one-dimensional Array using the IComparable implementation of each element of the Array.

System_CAPS_pubmethodSystem_CAPS_staticSort(Array, Array)

Sorts a pair of one-dimensional Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first Array using the IComparable implementation of each key.

System_CAPS_pubmethodSystem_CAPS_staticSort(Array, Array, IComparer)

Sorts a pair of one-dimensional Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first Array using the specified IComparer.

System_CAPS_pubmethodSystem_CAPS_staticSort(Array, Array, Int32, Int32)

Sorts a range of elements in a pair of one-dimensional Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first Array using the IComparable implementation of each key.

System_CAPS_pubmethodSystem_CAPS_staticSort(Array, Array, Int32, Int32, IComparer)

Sorts a range of elements in a pair of one-dimensional Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first Array using the specified IComparer.

System_CAPS_pubmethodSystem_CAPS_staticSort(Array, IComparer)

Sorts the elements in a one-dimensional Array using the specified IComparer.

System_CAPS_pubmethodSystem_CAPS_staticSort(Array, Int32, Int32)

Sorts the elements in a range of elements in a one-dimensional Array using the IComparable implementation of each element of the Array.

System_CAPS_pubmethodSystem_CAPS_staticSort(Array, Int32, Int32, IComparer)

Sorts the elements in a range of elements in a one-dimensional Array using the specified IComparer.

System_CAPS_pubmethodSystem_CAPS_staticSort<T>(T[])

Sorts the elements in an entire Array using the IComparable<T> generic interface implementation of each element of the Array.

System_CAPS_pubmethodSystem_CAPS_staticSort<T>(T[], Comparison<T>)

Sorts the elements in an Array using the specified Comparison<T>.

System_CAPS_pubmethodSystem_CAPS_staticSort<T>(T[], IComparer<T>)

Sorts the elements in an Array using the specified IComparer<T> generic interface.

System_CAPS_pubmethodSystem_CAPS_staticSort<T>(T[], Int32, Int32)

Sorts the elements in a range of elements in an Array using the IComparable<T> generic interface implementation of each element of the Array.

System_CAPS_pubmethodSystem_CAPS_staticSort<T>(T[], Int32, Int32, IComparer<T>)

Sorts the elements in a range of elements in an Array using the specified IComparer<T> generic interface.

System_CAPS_pubmethodSystem_CAPS_staticSort<TKey, TValue>(TKey[], TValue[])

Sorts a pair of Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first Array using the IComparable<T> generic interface implementation of each key.

System_CAPS_pubmethodSystem_CAPS_staticSort<TKey, TValue>(TKey[], TValue[], IComparer<TKey>)

Sorts a pair of Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first Array using the specified IComparer<T> generic interface.

System_CAPS_pubmethodSystem_CAPS_staticSort<TKey, TValue>(TKey[], TValue[], Int32, Int32)

Sorts a range of elements in a pair of Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first Array using the IComparable<T> generic interface implementation of each key.

System_CAPS_pubmethodSystem_CAPS_staticSort<TKey, TValue>(TKey[], TValue[], Int32, Int32, IComparer<TKey>)

Sorts a range of elements in a pair of Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first Array using the specified IComparer<T> generic interface.

Return to top
Show:
© 2017 Microsoft