![Collapse image](collapse_all.gif)
![Expand Image](expand_all.gif)
![CollapseAll image](collall.gif)
![ExpandAll image](expall.gif)
![DropDown image](drpdown.gif)
![DropDownHover image](drpdown_orange.gif)
![Copy image](copycode.gif)
![CopyHover image](copycodeHighlight.gif)
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
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.
A supplied IComparer<T> is used
to compare the items in the list.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public static void StableSortInPlace<T>( IList<T> list, IComparer<T> comparer ) |
Visual Basic (Declaration) |
---|
Public Shared Sub StableSortInPlace(Of T) ( _ list As IList(Of T), _ comparer As IComparer(Of T) _ ) |
Visual C++ |
---|
public: generic<typename T> static void StableSortInPlace ( IList<T>^ list, IComparer<T>^ comparer ) |
Parameters
- list
- IList<(Of <T>)>
The list or array to sort.
- comparer
- IComparer<(Of <T>)>
The comparer instance used to compare items in the collection. Only the Compare method is used.
Type Parameters
- T
Remarks
Although arrays cast to IList<T> are normally read-only, this method
will work correctly and modify an array passed as list.
See Also
Algorithms Class
Wintellect.PowerCollections Namespace