## SortKey::Compare method


Сравнивает два сортировочных ключа.

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


| Параметр | Тип | Описание |
| --- | --- | --- |
| 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.PDF for C++](../../../)
