Class TreeSort<T>
A tree sort implementation.
Namespace: Advanced.Algorithms.Sorting
Assembly: Advanced.Algorithms.dll
Syntax
public class TreeSort<T> : object where T : IComparable
Type Parameters
Name | Description |
---|---|
T |
Methods
Sort(IEnumerable<T>, SortDirection)
Time complexity: O(nlog(n)).
Declaration
public static IEnumerable<T> Sort(IEnumerable<T> enumerable, SortDirection sortDirection = null)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | enumerable | |
SortDirection | sortDirection |
Returns
Type | Description |
---|---|
IEnumerable<T> |