Compares the two collection items and returns -1, 0, or 1. The Sort method uses the Compare method to determine the sort order of the items.
Warning |
---|
The OnCompare event handler must be defined |
Namespace: Structures
Delphi |
protected |
Parameters
Item1
Type: TCollectionItem
Item2
Type: TCollectionItem
Type: Integer