AlgorithmsStableSortInPlaceT Method (IListT) |
Sorts a list or array in place. The sort is stable, which means that if items X and Y are equal,
and X precedes Y in the unsorted collection, X will precede Y is the sorted collection.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic static void StableSortInPlace<T>(
IList<T> list
)
where T : Object, IComparable<T>
public:
generic<typename T>
where T : Object, IComparable<T>
static void StableSortInPlace(
IList<T>^ list
)
Parameters
- list
- Type: System.Collections.GenericIListT
The list or array to sort.
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:X3Platform.Collections.Algorithms.StableSortInPlace``1(System.Collections.Generic.IList{``0})"]
RemarksValues are compared by using the IComparable<T>
interfaces implementation on the type T.
Although arrays cast to IList<T> are normally read-only, this method
will work correctly and modify an array passed as list.
See Also