Table of Contents

TTMSFNCTreeViewNodes.Sort Method

Sorts child nodes by the specified column's cell text.

API unit family: TMSFNCTreeViewData Declaring type: TTMSFNCTreeViewNodes

Syntax

procedure Sort(AColumn: Integer = 0; ARecurse: Boolean = False; ACaseSensitive: Boolean = True; ASortingMode: TTMSFNCTreeViewNodesSortMode = nsmAscending; AClearNodeList: Boolean = True);

Parameters

Name Description
AColumn Zero-based column index to sort by. Default: 0.
ARecurse True sorts all descendants recursively. Default: False.
ACaseSensitive True uses case-sensitive comparison. Default: True.
ASortingMode Direction of the sort. Default: nsmAscending.
AClearNodeList True rebuilds the virtual node list after sorting. Default: True.