Skip to content

CompareSortKey

Compare two sort keys.

Declaration

Source position: unicodedata.pas line 521

  function CompareSortKey(const A: TUCASortKey; const B: TUCASortKey)
                          : Integer;  Overload;
  function CompareSortKey(const A: TUCASortKey; const B: Array of Word)
                          : Integer;  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