Skip to content

CompareSortKey

Compare two sort keys.

Declaration

Source position: unicodedata.pas line 534

function CompareSortKey(const A: TUCASortKey; const B: TUCASortKey)
                        : Integer;  overload; overload;
function CompareSortKey(const A: TUCASortKey; const B: Array of Word)
                        : Integer;  overload; overload;

Description

CompareSortKey compares 2 sort keys A and B. It returns

  • a negative number if A comes alphabetically ordered before B.
  • Zero if A is alphabetically identical to B.
  • A positive number if A is alphabetically ordered after B.

Sort keys can be constructed from unicode strings using ComputeSortKey.

See also

Name Description
ComputeSortKey Compute the sort key for a string.