AlgorithmsSortT Method (IEnumerableT) |
Creates a sorted version of a 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
)
where T : Object, IComparable<T>
public:
generic<typename T>
where T : Object, IComparable<T>
static array<T>^ Sort(
IEnumerable<T>^ collection
)
Parameters
- collection
- Type: System.Collections.GenericIEnumerableT
The collection to sort.
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:X3Platform.Collections.Algorithms.Sort``1(System.Collections.Generic.IEnumerable{``0})"]
Return Value
Type:
TAn array containing the sorted version of the collection.
RemarksValues are compared by using the IComparable<T>
interfaces implementation on the type T.
See Also