## SortKey::Compare method


Compara dos claves de ordenación.

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


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| sortkey1 | const SortKeyPtr\& | Primera clave de ordenación. |
| sortkey2 | const SortKeyPtr\& | Segunda clave de ordenación. |

### ReturnValue

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

## Ver también

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