Version

SortMerge Method

Sorts the passed in array list based on the passed in comparer using a modified merge-sort algorithm.
Overload List
OverloadDescription
SortMerge(ArrayList,IComparer)Sorts the passed in array list based on the passed in comparer using a modified merge-sort algorithm.  
SortMerge(Object[],IComparer)Sorts the passed in array based on the passed in comparer using a modified merge-sort algorithm. It requires allocation of an array equal in size to the array to be sorted. Merge sort should be used if the operation of comparing items is expensive.  
SortMerge(Object[],Object[],IComparer)Sorts the passed in array based on the passed in comparer using a modified merge-sort algorithm. Optionally you can pass in a temporary array equal (or greater) in size to arr. The method will make use of that array instead of allocating one. If null is passed in, then it will allocate one. Merge sort should be used if the operation of comparing items is expensive.  
SortMerge(Object[],Object[],IComparer,Int32,Int32)Sorts the passed in array based on the passed in comparer using a modified merge-sort algorithm. Optionally you can pass in a temporary array equal (or greater) in size to arr. The method will make use of that array instead of allocating one. If null is passed in, then it will allocate one. Merge sort should be used if the operation of comparing items is expensive.  
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also