Skip to main content

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

Sorts the nodes’ children using the specified IComparer object.

Namespace: DevExpress.XtraTreeList.Nodes

Assembly: DevExpress.XtraTreeList.v24.1.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

public void Sort(
    IComparer<TreeListNode> comparer,
    bool recursive = false
)

Parameters

Name Type Description
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