
## compareTo(obj) {#object}

Compares the specified object to the current object.


```js
compareTo(obj: object)
```

| Parameter | Type | Description |
| --- | --- | --- |
| obj | object |  |

## compareTo(other) {#list}

Compares the specified list to the current list.


```js
compareTo(other: Aspose.Words.Lists.List)
```

| Parameter | Type | Description |
| --- | --- | --- |
| other | [List](../) |  |

## See Also

* module [Aspose.Words](../../)
* class [List](../)

