CompareSortKey function
Compare two sort keys.
Declaration
function CompareSortKey(const A: TUCASortKey; const B: TUCASortKey)
: Integer; overloadArguments
A | First key to compare. |
B | Second key to compare. |
Function result
A signed number determining how A and B are alphabetically ordered.
Description
CompareSortKey compares 2 sort keys
A and
B.
It returns
- a negative number if
Acomes alphabetically ordered beforeB. - Zero if
Ais alphabetically identical toB. - A positive number if
Ais alphabetically ordered afterB.
Sort keys can be constructed from unicode strings using ComputeSortKey.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
