Sign in Join
FPDoc Onlineexperiment

TCustomTreeView.DefaultTreeViewSort function

Member of TCustomTreeViewpublicIn unit ComCtrls

DefaultTreeViewSort - returns result of string comparison between names of Node1 and Node2

Declaration

pascal
function DefaultTreeViewSort(Node1: TTreeNode; Node2: TTreeNode)
: Integer

Description

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.