Class Sorting
Sorting algorithms for single, tuple and triple lists.
Inheritance
System.Object
Sorting
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Mars.Numerics
Assembly: Mars.Numerics.dll
Syntax
public static class Sorting
Methods
| Improve this Doc View SourceSort<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 |
---|---|---|
System.Collections.Generic.IList<T> | keys | List to sort. |
System.Collections.Generic.IComparer<T> | comparer | Comparison, defining the sort order. |
Type Parameters
Name | Description |
---|---|
T | The type of elements in the key list. |