# CompareTo(GraphicsBufferHandle)

> Compares this GraphicsBufferHandle with another to determine their relative positions in the sort order, according to their integer values.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

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

### Parameters

**** (\[GraphicsBufferHandle]\(/engine/6000.6/script-reference/unityengine/graphicsbufferhandle)): The other `GraphicsBufferHandle` to compare with this instance.

### Returns

| Type                                                       | Description                                                                                                                                                                                                                                                                                                                               |
| ---------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | An integer that represents the relative sort order positions of the current instance and the other `GraphicsBufferHandle`. Returns a negative integer if this instance precedes `other`. Returns a positive integer if this instance follows `other`. Returns zero if this instance and `other` have the same position in the sort order. |
