Skip to main content
All docs
V26.1
  • TreeListNode.Sort(IComparer<TreeListNode>, Boolean) Method

    Sorts the nodes’ children using the specified IComparer object.

    Namespace: DevExpress.XtraTreeList.Nodes

    Assembly: DevExpress.XtraTreeList.v26.1.dll

    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