GenericExtensionsSortT(IListT) Method
Sorts the elements in the entire List{T} using the default comparer.
A quick sort algorithm is used. Quick sort is a un-stable sort algorithm
i.e. if two elements are equal their order may not be preserved.
If the provided IList is either an array or a list, the build in sorting
method is used (also quick sort).
Namespace: DHI.Mike1D.GenericAssembly: DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 24.0.0.0 (11.1.1.1111)
public static void Sort<T>(
this IList<T> list
)
- list IListT
- List to sort
- 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).