Class Sorting
Sorting algorithms for single, tuple and triple lists.
Inheritance
System.Object
Sorting
Namespace: Mars.Numerics
Assembly: Mars.Numerics.dll
Syntax
public static class Sorting : object
Methods
Sort<T>(IList<T>, IComparer<T>)
Sort a list of keys, in place using the quick sort algorithm using the quick sort algorithm.
Declaration
public static void Sort<T>(IList<T> keys, IComparer<T> comparer = null)
Parameters
Type | Name | Description |
---|---|---|
IList<T> | keys | List to sort. |
IComparer<T> | comparer | Comparison, defining the sort order. |
Type Parameters
Name | Description |
---|---|
T | The type of elements in the key list. |