Table of Contents

Method Sort

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Sort(FileListBoxColumn, ColumnSortDirection)

Sorts the items in the file list based on the specified column and sort direction.

public virtual void Sort(FileListBoxColumn column, ColumnSortDirection direction = ColumnSortDirection.Ascending)

Parameters

column FileListBoxColumn

The column to sort by. This determines the criteria used for sorting.

direction ColumnSortDirection

The direction in which to sort the items. The default is Ascending. If Flip is specified, the current sort direction for the column is toggled.

Remarks

If the specified column does not support sorting, the method will return without performing any operation. The sort direction for the column is updated based on the provided direction.