AlgorithmsSortT Method (IEnumerableT, ComparisonT) |
Creates a sorted version of a collection. A supplied Comparison<T> delegate is used
to compare the items in the collection.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic static T[] Sort<T>(
IEnumerable<T> collection,
Comparison<T> comparison
)
public:
generic<typename T>
static array<T>^ Sort(
IEnumerable<T>^ collection,
Comparison<T>^ comparison
)
Parameters
- collection
- Type: System.Collections.GenericIEnumerableT
The collection to sort. - comparison
- Type: SystemComparisonT
The comparison delegate used to compare items in the collection.
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:X3Platform.Collections.Algorithms.Sort``1(System.Collections.Generic.IEnumerable{``0},System.Comparison{``0})"]
Return Value
Type:
TAn array containing the sorted version of the collection.
See Also