Click or drag to resize

SortingHeapSortVirtuallyT(IListT) Method

Sorts the elements, but maintains the original order in the provided array. Instead, an array of indices is created. The elements are sorted in the sense that elementsToSort[indexArray[i]] is sorted afterwards. The standard comparer of the elements is used for comparison.

Namespace: Altaxo.Data
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static int[] HeapSortVirtually<T>(
	IList<T> elementsToSort
)
where T : IComparable

Parameters

elementsToSort  IListT
The list of elements to sort. The list is not changed, thus it can be readonly.

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:Altaxo.Data.Sorting.HeapSortVirtually``1(System.Collections.Generic.IList{``0})"]

Return Value

Int32
An array of indices, so that elementsToSort[indexArray[i]] (i = 0..Count-1) is sorted.
See Also