# Function: positionBetween()

```ts
function positionBetween(before?, after?): string;
```

Defined in: [packages/core/src/schemas/index.ts:79](https://github.com/leifriksheim/minca/blob/main/core/src/schemas/index.ts#L79)

A `position` that sorts after `before` and ahead of `after` — either may be
missing, for the ends. Positions compare as plain strings and never end in
`0`, so there is always room for another between any two. Equal positions
(two people dropping in the same spot at once) are fine; sort those by key.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `before?` | `string` \| `null` |
| `after?` | `string` \| `null` |

## Returns

`string`
