Array..::.Sort Method
This page is specific to:.NET Framework Version:1.12.03.03.5Silverlight 34.0
.NET Framework Class Library
Array..::.Sort Method

Sorts the elements in one-dimensional Array objects.

Overload List

  NameDescription
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkSort(Array)Sorts the elements in an entire one-dimensional Array using the IComparable implementation of each element of the Array.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkSort<(Of <(T>)>)(array<T>[]()[])Sorts the elements in an entire Array using the IComparable<(Of <(T>)>) generic interface implementation of each element of the Array.
Public methodStatic memberSort(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.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkSort(Array, IComparer)Sorts the elements in a one-dimensional Array using the specified IComparer.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkSort<(Of <(T>)>)(array<T>[]()[], IComparer<(Of <(T>)>))Sorts the elements in an Array using the specified IComparer<(Of <(T>)>) generic interface.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkSort<(Of <(T>)>)(array<T>[]()[], Comparison<(Of <(T>)>))Sorts the elements in an Array using the specified Comparison<(Of <(T>)>).
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkSort<(Of <(TKey, TValue>)>)(array<TKey>[]()[], array<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<(Of <(T>)>) generic interface implementation of each key.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkSort(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.
Public methodStatic memberSort(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.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkSort<(Of <(T>)>)(array<T>[]()[], Int32, Int32)Sorts the elements in a range of elements in an Array using the IComparable<(Of <(T>)>) generic interface implementation of each element of the Array.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkSort<(Of <(TKey, TValue>)>)(array<TKey>[]()[], array<TValue>[]()[], IComparer<(Of <(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<(Of <(T>)>) generic interface.
Public methodStatic memberSort(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.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkSort(Array, Int32, Int32, IComparer)Sorts the elements in a range of elements in a one-dimensional Array using the specified IComparer.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkSort<(Of <(T>)>)(array<T>[]()[], Int32, Int32, IComparer<(Of <(T>)>))Sorts the elements in a range of elements in an Array using the specified IComparer<(Of <(T>)>) generic interface.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkSort<(Of <(TKey, TValue>)>)(array<TKey>[]()[], array<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<(Of <(T>)>) generic interface implementation of each key.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkSort(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.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkSort<(Of <(TKey, TValue>)>)(array<TKey>[]()[], array<TValue>[]()[], Int32, Int32, IComparer<(Of <(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<(Of <(T>)>) generic interface.
Top
See Also

Reference

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View