## SortKey::Compare method


2つのソートキーを比較します。

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


| パラメーター | 型 | 説明 |
| --- | --- | --- |
| sortkey1 | const SortKeyPtr\& | 最初のソートキーです。 |
| sortkey2 | const SortKeyPtr\& | 2 番目のソートキーです。 |

### 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++](../../../)
