# CompareTo(WorldUnmanaged)

> Compares this world with another by sequence number, then by version.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

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

### Parameters

**** (\[WorldUnmanaged]\(/engine/7000.0/script-reference/unity/entities/worldunmanaged)): The world to compare with.

### Returns

| Type                                                       | Description                                                                                          |
| ---------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | A negative value, zero or a positive value if this world sorts before, the same as or after `other`. |
