Version

SortMergeGeneric Method

Sorts the passed in list based on the passed in comparer using a modified merge-sort algorithm.
Overload List
OverloadDescription
SortMergeGeneric<T>(List<T>,IComparer<T>)Sorts the passed in list based on the passed in comparer using a modified merge-sort algorithm.  
SortMergeGeneric<T>(List<T>,IComparer<T>,Int32,Int32)Sorts the passed in list based on the passed in comparer using a modified merge-sort algorithm.  
SortMergeGeneric<T>(T[],IComparer<T>)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.  
SortMergeGeneric<T>(T[],T[],IComparer<T>)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.  
SortMergeGeneric<T>(T[],T[],IComparer<T>,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: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also