DataFrame<R, C>.SortBy Method

Definition

Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

SortBy(C) Sorts the data frame by the specified column.
SortBy(Int32) Sorts the data frame by the specified column.
SortBy(C, SortOrder) Sorts the data frame by the specified column.
SortBy(Int32, SortOrder) Sorts the data frame by the specified column.

DataFrame<R, C>.SortBy(C)

Sorts the data frame by the specified column.
C#
public DataFrame<R, C> SortBy(
	C columnKey
)

Parameters

columnKey  C
The key of the column to sort on.

Return Value

DataFrame<R, C>
A new data frame that has been sorted by the column with key columnKey in ascending order.

DataFrame<R, C>.SortBy(Int32)

Sorts the data frame by the specified column.
C#
public DataFrame<R, C> SortBy(
	int columnIndex
)

Parameters

columnIndex  Int32
The index of the column to sort on.

Return Value

DataFrame<R, C>
A new data frame that has been sorted by the column with index columnIndex in ascending order.

DataFrame<R, C>.SortBy(C, SortOrder)

Sorts the data frame by the specified column.
C#
public DataFrame<R, C> SortBy(
	C columnKey,
	SortOrder sortOrder
)

Parameters

columnKey  C
The key of the column to sort on.
sortOrder  SortOrder
The desired sort order.

Return Value

DataFrame<R, C>
A new data frame that has been sorted by the column with key columnKey in the order specified by sortOrder.

DataFrame<R, C>.SortBy(Int32, SortOrder)

Sorts the data frame by the specified column.
C#
public DataFrame<R, C> SortBy(
	int columnIndex,
	SortOrder sortOrder
)

Parameters

columnIndex  Int32
The index of the column to sort on.
sortOrder  SortOrder
The desired sort order.

Return Value

DataFrame<R, C>
A new data frame that has been sorted by the column with index columnIndex in the order specified by sortOrder.

See Also