SortingSortTKey, TItem(IListTKey, IListTItem, Int32, Int32, IComparerTKey) Method |
Sort a list of keys and items with respect to the keys, in place using the quick sort algorithm.
Namespace: Altaxo.CalcAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static void Sort<TKey, TItem>(
IList<TKey> keys,
IList<TItem> items,
int index,
int count,
IComparer<TKey> comparer = null
)
Parameters
- keys IListTKey
- List to sort.
- items IListTItem
- List to permute the same way as the key list.
- index Int32
- The zero-based starting index of the range to sort.
- count Int32
- The length of the range to sort.
- 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