# CompareTo(ObjectIdentifier)

> Implements the IComparable interface.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Build.Content](/engine/6000.7/script-reference/unityeditor/build/content.md)
* **Assembly:** UnityEditor.CoreModule

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

### Parameters

**** (\[ObjectIdentifier]\(/engine/6000.7/script-reference/unityeditor/build/content/objectidentifier)): The object identifier to compare with this instance.

### Returns

| Type                                                       | Description                                                                                                                                                                  |
| ---------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The returned value is the comparison result of the guid, local identifier, file type or file path depending on which of these is not equal first when checked in that order. |
