## CompareInfo::GetSortKey(const String\&) const method


Gets [SortKey](../../sortkey/) object for the specified string.

```cpp
virtual SortKeyPtr System::Globalization::CompareInfo::GetSortKey(const String &value) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| value | const String\& | Input string. |

### ReturnValue

[SortKey](../../sortkey/) object.

## See Also

* Typedef [SortKeyPtr](../../sortkeyptr/)
* Class [String](../../../system/string/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.PDF for C++](../../../)
## CompareInfo::GetSortKey(const String\&, CompareOptions) const method


Gets [SortKey](../../sortkey/) object for the specified string using specified compare options.

```cpp
virtual SortKeyPtr System::Globalization::CompareInfo::GetSortKey(const String &value, CompareOptions options) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| value | const String\& | Input string. |
| options | CompareOptions | Compare options. |

### ReturnValue

[SortKey](../../sortkey/) object.

## See Also

* Typedef [SortKeyPtr](../../sortkeyptr/)
* Class [String](../../../system/string/)
* Enum [CompareOptions](../../compareoptions/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.PDF for C++](../../../)
