# operator <(EntityId, EntityId)

> Determines whether the first EntityId is less than the second.

## Definition

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

```csharp
public static bool operator <(EntityId left, EntityId right)
```

### Parameters

**** (\[EntityId]\(/engine/6000.7/script-reference/unityengine/entityid)): **** (\[EntityId]\(/engine/6000.7/script-reference/unityengine/entityid)):&#x20;

### Returns

| Type                                                          | Description                                                           |
| ------------------------------------------------------------- | --------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the first EntityId is less than the second; otherwise, false. |

### Remarks

The ordering of `EntityId` values is arbitrary and does not reflect creation order or any other meaningful property. Do not rely on the comparison result for anything other than establishing a consistent ordering for data structures that require it.
