FrameViewOrderBy(String, SortOrder) Method

Sort the rows by the values in the given column in the given direction.

Definition

Namespace: Meta.Numerics.Data
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public FrameView OrderBy(
	string columnName,
	SortOrder order
)

Parameters

columnName  String
The name of the column to sort by.
order  SortOrder
The direction of the ordering.

Return Value

FrameView
A new view, with rows sorted by the values in the given column.

Remarks

values are supported and are ordered before all other values.

The type of data in the column must implement IComparable.

Exceptions

ArgumentNullExceptioncolumnName is .
IndexOutOfRangeExceptioncolumnName is not the name of a column in the view.
InvalidCastExceptionThe type of data in the column is not IComparable.

See Also