All docs
V20.1
20.2 (EAP/Beta)
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

TreeList.Sort(TreeListNode, IComparer<TreeListNode>, Boolean) Method

Sorts the specified node's children using the specified IComparer object. Allows you to sort root nodes.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v20.1.dll

Declaration

public void Sort(
    TreeListNode node,
    IComparer<TreeListNode> comparer,
    bool recursive = false
)
Public Sub Sort(
    node As TreeListNode,
    comparer As IComparer(Of TreeListNode),
    recursive As Boolean = False
)

Parameters

Name Type Description
node TreeListNode

The node whose children need to be sorted. Null, to sort root nodes.

comparer IComparer<TreeListNode>

The object that compares Tree List nodes.

Optional Parameters

Name Type Default Description
recursive Boolean

False

true, to sort nodes recursively; otherwise, false.

Remarks

See TreeList.Sort for more information.

See Also