Click or drag to resize

SortingSortTKey, TItem1, TItem2(IListTKey, IListTItem1, IListTItem2, IComparerTKey) Method

Sort a list of keys, items1 and items2 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, TItem1, TItem2>(
	IList<TKey> keys,
	IList<TItem1> items1,
	IList<TItem2> items2,
	IComparer<TKey> comparer = null
)

Parameters

keys  IListTKey
List to sort.
items1  IListTItem1
First list to permute the same way as the key list.
items2  IListTItem2
Second 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.
TItem1
The type of elements in the first item list.
TItem2
The type of elements in the second item list.
See Also