[API reference](https://evolu.dev/docs/api-reference) › [@evolu/common](https://evolu.dev/docs/api-reference/common) › [local‑first/Timestamp](https://evolu.dev/docs/api-reference/common/local-first/Timestamp) › orderTimestamp

```ts
const orderTimestamp: Order<Timestamp>;
```

Defined in: [packages/common/src/local-first/Timestamp.ts:479](https://github.com/evoluhq/evolu/blob/ecbac001e0c18bbc45b44715f49ecc3a768c5ec9/packages/common/src/local-first/Timestamp.ts#L479)

Orders [Timestamp](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/variables/Timestamp) by milliseconds, counter, then node ID.

Matches [orderTimestampBytes](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/variables/orderTimestampBytes) without encoding timestamps. Distinct
objects with identical fields compare as equal.

### Example

```ts

const timestamp = createTimestamp();
assertEqual(orderTimestamp(timestamp, { ...timestamp }), 0);
```