Compare list items callback signature.
Source position: fgl.pp line 45
type TFPSListCompareFunc = function( |
Key1: Pointer; |
Key2: Pointer |
):Integer of object; |
Key1 |
|
First key value. |
Key2 |
|
Second key value. |
Is key1 less than key2.
TFPSListCompareFunc is used in the TFPSList.Sort method to compare 2 elements. The list passes 2 pointers to the actual items to the compare function. The result of this function determines how the pointers will be sorted:
|
Sort the list. |