TBaseVirtualTree.Sort Method

Virtual Tree View

Sorts the given node.

Pascal
procedure Sort(Node: PVirtualNode; Column: TColumnIndex; Direction: TSortDirection; DoInit: Boolean = True); virtual;
Description

Sort sorts the child nodes of Node. The application is queried about how to sort via the OnCompareNodes event. Column is simply passed to the the compare function so the application can also sort in a particular column. In order to free the application from taking care about the sort direction the parameter Direction is used. This way the application can always compare as would the node be sorted in increasing direction , while Sort reorders nodes according to this flag.

Class
Links
What do you think about this topic? Send feedback!