Click or drag to resize
SortingExtensionMethods.Sort<T> Method (IList<T>, SortAlgorithm, SortDirection, Comparison<T>)
Sorts the specified IList(Of T) using the algorithm specified in the order specified.

Namespace:  SD.Tools.Algorithmia.Sorting
Assembly:  SD.Tools.Algorithmia (in SD.Tools.Algorithmia.dll) Version: 1.3.0.0 (1.3.17.0314)
Syntax
public static void Sort<T>(
	this IList<T> toSort,
	SortAlgorithm algorithm,
	SortDirection direction,
	Comparison<T> compareFunc
)

Parameters

toSort
Type: System.Collections.Generic.IList<T>
the list to sort.
algorithm
Type: SD.Tools.Algorithmia.SortAlgorithm
The algorithm to use.
direction
Type: SD.Tools.Algorithmia.SortDirection
The direction to sort the elements in.
compareFunc
Type: System.Comparison<T>
The compare func to compare two elements in the list to sort.

Type Parameters

T
type of the elements in toSort

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IList<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also