System::Array::Sort method Array::Sort(const ArrayPtr<TKey>&, const ArrayPtr<TValue>&) method Sorts two arrays one containing keys and the other - corresponding items, based on the values of array containing keys, elements of which are compared using operator<.
Copy template < typename TKey , typename TValue > static void System :: Array < T >:: Sort ( const ArrayPtr < TKey > & keys , const ArrayPtr < TValue > & items )
Parameter Description TKey The type of the elements in the keys array TValue the type of the elements in the items array
Parameter Type Description keys const ArrayPtr<TKey>& Array that contains key valuesitems const ArrayPtr<TValue>& Array that contains items that are mapped to the key values in keys array
See Also Array::Sort(const ArrayPtr<TKey>&, const ArrayPtr<TValue>&, int, int) method Sorts two arrays one containing keys and the other - corresponding items, based on the values of array containing keys, elements of which are compared using default comparer.
Copy template < typename TKey , typename TValue > static void System :: Array < T >:: Sort ( const ArrayPtr < TKey > & keys , const ArrayPtr < TValue > & items , int index , int length )
Parameter Description TKey The type of the elements in the keys array TValue the type of the elements in the items array
Parameter Type Description keys const ArrayPtr<TKey>& Array that contains key valuesitems const ArrayPtr<TValue>& Array that contains items that are mapped to the key values in keys arrayindex int The index designating the beginning of the range to sort length int The number of elements in the range to sort
See Also Array::Sort(const ArrayPtr<Type>&) method Sorts elements in the specified array using default comparer.
Copy template < typename Type > static void System :: Array < T >:: Sort ( const ArrayPtr < Type > & arr )
Parameter Type Description arr const ArrayPtr<Type>& Targed array
See Also Array::Sort(const ArrayPtr<Type>&, const SharedPtr<System::Collections::Generic::IComparer<T>>&) method Sorts elements in the specified array using specified comparer.
Copy template < typename Type > static void System :: Array < T >:: Sort ( const ArrayPtr < Type > & arr , const SharedPtr < System :: Collections :: Generic :: IComparer < T >> & comparator )
Parameter Type Description arr const ArrayPtr<Type>& Targed array comparator const SharedPtr<System::Collections::Generic::IComparer<T>>& IComparer object used to compare elements of the array
See Also Array::Sort(const ArrayPtr<Type>&, const SharedPtr<System::Collections::Generic::IComparer<Y>>&) method NOT IMPLEMENTED.
Copy template < typename Type , typename Y > static void System :: Array < T >:: Sort ( const ArrayPtr < Type > & arr , const SharedPtr < System :: Collections :: Generic :: IComparer < Y >> & comparator )
See Also Array::Sort(const ArrayPtr<Type>&, int, int) method Sorts a range of elements in the specified array using default comparer.
Copy template < typename Type > static void System :: Array < T >:: Sort ( const ArrayPtr < Type > & arr , int startIndex , int count )
Parameter Type Description arr const ArrayPtr<Type>& Targed array startIndex int The index designating the beginning of the range of elements to sort count int The size of the range of elements to sort
See Also