Class TreeSort<T>
A tree sort implementation.
Inherited Members
Namespace: Advanced.Algorithms.Sorting
Assembly: Advanced.Algorithms.dll
Syntax
public class TreeSort<T>
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 = SortDirection.Ascending)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<T> | enumerable | |
| SortDirection | sortDirection |
Returns
| Type | Description |
|---|---|
| IEnumerable<T> |