[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:469](https://github.com/evoluhq/evolu/blob/f082fdd974e25fa0eb1134e4b34f15b740af8fe2/packages/common/src/local-first/Timestamp.ts#L469)

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);
```