Click or drag to resize

CollectionUtilityMergeSortT Method (T, ComparisonT, Boolean)

Merge sort is a efficient sorting method. It divides input array in two halves, calls itself for the two halves and then merges the two sorted halves. Stable sort.

Namespace:  NeoAxis
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2023.1.2.0 (2023.1.2.0)
Syntax
C#
public static void MergeSort<T>(
	T[] array,
	Comparison<T> comparer,
	bool multithreaded = false
)

Parameters

array
Type: T
comparer
Type: SystemComparisonT
multithreaded (Optional)
Type: SystemBoolean

Type Parameters

T
See Also