Version

SortMergeGeneric<T>(List<T>,IComparer<T>,Int32,Int32) Method

Sorts the passed in list based on the passed in comparer using a modified merge-sort algorithm.
Syntax
'Declaration
 
Public Overloads Shared Sub SortMergeGeneric(Of T)( _
   ByVal list As List(Of T), _
   ByVal comparer As IComparer(Of T), _
   ByVal startIndex As Integer, _
   ByVal endIndex As Integer _
) 
public static void SortMergeGeneric<T>( 
   List<T> list,
   IComparer<T> comparer,
   int startIndex,
   int endIndex
)

Parameters

list
The list to be sorted.
comparer
The comparer (must not be null).
startIndex
Start index in the array. Items between the specified start index and end index will be sorted. Other items will be left as they are.
endIndex
End index in the array. Items between the specified start index and end index will be sorted. Other items will be left as they are.

Type Parameters

T
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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