![]()
A signed integer that indicates the relationship between sortkey1 and sortkey2.
Less than zero sortkey1 is less than sortkey2.
Zero sortkey1 is equal to sortkey2.
Greater than zero sortkey1 is greater than sortkey2.
The SortKey.Compare(SortKey, SortKey) method compares the SortKey.KeyData properties of the sortkey1 and sortkey2 parameters. The method yields the same results as the CompareInfo.Compare(string, string) method.