# CompareTo(BoundProperty)

> Compares this BoundProperty to a specific BoundProperty.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Animations](/engine/6000.7/script-reference/unityengine/animations.md)
* **Assembly:** UnityEngine.AnimationModule

```csharp
public int CompareTo(BoundProperty other)
```

### Parameters

**** (\[BoundProperty]\(/engine/6000.7/script-reference/unityengine/animations/boundproperty)): The BoundProperty to compare.

### Returns

| Type                                                       | Description                                                                                                                                                     |
| ---------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | Returns zero if the Index values for the two BoundProperty objects match. Otherwise, this method returns the difference between the BoundProperty Index values. |
