Skip to main content
All docs
V24.1

ITreeList.SortBy(String, TreeListColumnSortOrder, Int32) Method

Sorts data by column values in the specified order, and specifies the sorted column’s index.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

void SortBy(
    string columnFieldName,
    TreeListColumnSortOrder sortOrder,
    int sortIndex
)

Parameters

Name Type Description
columnFieldName String

Specifies the name of the data source field that supplies data for the processed column. If the component does not contain the column that corresponds to the specified data field, an exception occurs.

sortOrder TreeListColumnSortOrder

An enumeration value.

sortIndex Int32

The sorted column’s zero-based index among other sorted columns.

Remarks

Refer to the SortBy(String, TreeListColumnSortOrder, Int32) method description for more information and an example.

See Also