[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/admin](../../README) / [index](../README) / moveKey

# Function: moveKey()

> **moveKey**(`order`, `key`, `direction`): `string`[]

Defined in: [admin/src/dashboardLayout.ts:79](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/admin/src/dashboardLayout.ts#L79)

Move one key up or down, returning the new order.

## Parameters

### order

`string`[]

### key

`string`

### direction

`-1` \| `1`

## Returns

`string`[]
