Returns a sorted copy of the given data in the specified order.
Namespace:
CenterSpace.NMath.StatsAssembly: NMathStats (in NMathStats.dll) Version: 3.4.0.0
Syntax
| C# |
|---|
public static int[] Sort( int[] data, SortingType order ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function Sort ( _ data As Integer(), _ order As SortingType _ ) As Integer() |
| Visual C++ |
|---|
public: static array<int>^ Sort( array<int>^ data, SortingType order ) |
Parameters
- data
- Type: array<
System..::.Int32
>[]()[]
An array of integers.
- order
- Type: CenterSpace.NMath.Stats..::.SortingType
Ascending or descending.