Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxTreeViewNodes.AlphaSort(Boolean) Method

Sorts tree nodes by their captions.

#Declaration

Delphi
function AlphaSort(ARecurse: Boolean = False): Boolean;

#Parameters

Name Type Description
ARecurse Boolean

If True, the function sorts nodes at all nesting levels. If False, the function sorts only root level nodes.

#Returns

Type Description
Boolean

True if the function successfully sorted tree nodes; otherwise, False.

#Remarks

You can handle the Tree View’s OnCompare event to implement a custom node sorting algorithm.

Note

If you need to sort nodes in an individual branch, call the AlphaSort or CustomSort method of the branch’s root node.

See Also