# CompareTo(NamedBuildTarget)

> Determines the sorting relation of another NamedBuildTarget's target name to the current instance.

## Definition

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

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

### Parameters

**** (\[NamedBuildTarget]\(/engine/6000.7/script-reference/unityeditor/build/namedbuildtarget)): The other NamedBuildTarget to compare

### Returns

| Type                                                       | Description                                                                        |
| ---------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | An integer value comparing the target name property of two NamedBuildTarget types. |
