Click or drag to resize

SortingSortTKey, TItem(IListTKey, IListTItem, IComparerTKey) Method

Sort a list of keys and items with respect to the keys, in place using the quick sort algorithm.

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static void Sort<TKey, TItem>(
	IList<TKey> keys,
	IList<TItem> items,
	IComparer<TKey> comparer = null
)

Parameters

keys  IListTKey
List to sort.
items  IListTItem
List to permute the same way as the key list.
comparer  IComparerTKey  (Optional)
Comparison, defining the sort order.

Type Parameters

TKey
The type of elements in the key list.
TItem
The type of elements in the item list.
See Also