TCustomTreeView.DefaultTreeViewSort function
DefaultTreeViewSort - returns result of string comparison between
names of Node1 and Node2Declaration
function DefaultTreeViewSort(Node1: TTreeNode; Node2: TTreeNode)
: IntegerDescription
DefaultTreeViewSort - returns result of string comparison between
names of Node1 and Node2.
DefaultTreeViewSort compares the text of two TreeNodes and returns
the following result:
- < 0
- if
Node1.Text<Node2.Text. - 0
- if
Node1.Text=Node2.Text. - > 0
- if
Node1.Text>Node2.Text.
The comparison takes into account ANSI characters, i.e. it takes care of accented characters. Unlike AnsiCompareText, the comparison is case sensitive.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
