Click or drag to resize

CollectionUtilityMergeSortT(IListT, IComparerT, Boolean) Method

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: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public static void MergeSort<T>(
	IList<T> list,
	IComparer<T> comparer,
	bool multithreaded = false
)

Parameters

list  IListT
comparer  IComparerT
multithreaded  Boolean  (Optional)

Type Parameters

T
See Also