## IComparable::CompareTo method


Compares the current object with the specified object.

```cpp
virtual int System::IComparable<T>::CompareTo(T other)=0
```


| Parameter | Type | Description |
| --- | --- | --- |
| other | T | The object to compare with the current object |

### ReturnValue

A negative number if the current object precedes the specified object is the sort order; 0 if the compared objects are equal; positive number if the current object follows the specified object in the sort order

## See Also

* Class [IComparable](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
