GenericExtensionsSortStableT(IListT, IComparerT) Method
Sorts the elements in the entire List{T} using the provided comparer.
A merge sort algorithm is used. merge sort is a stable sort algorithm
i.e. if two elements are equal their order are preserved.
Namespace: DHI.Mike1D.GenericAssembly: DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 24.0.0.0 (11.1.1.1111)
public static void SortStable<T>(
this IList<T> list,
IComparer<T> comparer
)
- list IListT
- List to sort
- comparer IComparerT
- Comparer to use while sorting
- T
- Type of elements to sort
In Visual Basic and C#, you can call this method as an instance method on any object of type
IListT. 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).