Click or drag to resize

FrameViewOrderBy Method (String, SortOrder)

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

Namespace:  Meta.Numerics.Data
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax
public FrameView OrderBy(
	string columnName,
	SortOrder order
)

Parameters

columnName
Type: SystemString
The name of the column to sort by.
order
Type: Meta.Numerics.DataSortOrder
The direction of the ordering.

Return Value

Type: FrameView
A new view, with rows sorted by the values in the given column.
Exceptions
ExceptionCondition
ArgumentNullExceptioncolumnName is .
IndexOutOfRangeExceptioncolumnName is not the name of a column in the view.
InvalidCastExceptionThe type of data in the column is not IComparable.
Remarks

values are supported and are ordered before all other values.

The type of data in the column must implement IComparable.

See Also