## SortKey::Compare method


يقارن مفتاحي فرز.

```cpp
static int System::Globalization::SortKey::Compare(const SortKeyPtr &sortkey1, const SortKeyPtr &sortkey2)
```


| Parameter | Type | الوصف |
| --- | --- | --- |
| sortkey1 | const SortKeyPtr\& | مفتاح الترتيب الأول. |
| sortkey2 | const SortKeyPtr\& | مفتاح الترتيب الثاني. |

### ReturnValue

-1 if **sortkey1** is less then **sortkey2**, 1 - if **sortkey1** is greater then **sortkey2**, 0 - if **sortkey1** is equal to **sortkey2**.

## انظر أيضًا

* Typedef [SortKeyPtr](../../sortkeyptr/)
* Class [SortKey](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.Page for C++](../../../)
