Vector.Sort<T>(Vector<T>, SortOrder) Method

Sorts a vector in the specified order.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static Vector<T> Sort<T>(
	this Vector<T> vector,
	SortOrder sortOrder
)

Parameters

vector  Vector<T>
The vector to sort.
sortOrder  SortOrder
A SortOrder value that specifies whether the elements should be sorted in ascending or descending order.

Type Parameters

T

Return Value

Vector<T>

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Vector<T>. 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).

See Also