[Overview][Types][Classes][Procedures and functions][Variables][Index] |
Specifies a comparison function type for string values in a TStrings instance.
Source position: lclproc.pas line 81
type TStringsSortCompare = function( |
const Item1: string; |
const Item2: string |
):Integer; |
Item1 |
|
First string value for the comparison. |
Item2 |
|
Second string value for the comparison. |
Integer with the relative sort order for the compared values.
TStringsSortCompare is an Integer function type used to compare string values to determine the relative sort order. The return value indicates the relative sort order for the compared items, and normally contains a value like the one returned from CompareText. For example:
The address for a TStringsSortCompare type is passed as an argument to the MergeSort routine.
|
Implements a merge/sort for TStrings or TFPList. |
Version 3.2 | Generated 2024-02-25 | Home |