---
title: "element.reorder: Order — Board kit command — Kition"
description: "Moves the elements to the front, one step forward, one step backward or to the back of the stacking order."
canonical: "https://developer.kition.ai/docs/kits/board/commands/element.reorder"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/board/commands/element.reorder](https://developer.kition.ai/docs/kits/board/commands/element.reorder)

# element.reorder

**Order.** Moves the elements to the front, one step forward, one step backward or to the back of the stacking order.

- Kit: Board 0.1.0 (.kboard); reference: [Board kit commands](https://developer.kition.ai/docs/kits/board.md)
- Changes the document: yes
- Acts on: `ids` (a list of ids), which a run step’s `on` fills

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `ids` | `string[]` | yes | The elements |
| `placement` | `"front" \| "forward" \| "backward" \| "back"` | yes | Where in the stacking order |

## Call through board_run

```text
board_run {
  "path": "<file>.kboard",
  "steps": [{ "command": "element.reorder", "params": { "ids": <string[]>, "placement": <"front" | "forward" | "backward" | "back"> } }]
}
```

The required parameters, with placeholders for their types: not a tested example. board_run answers the step’s result in `completed[i].result`.

## Result

The kit gives no result schema for this command.

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "ids": {
      "description": "The elements",
      "items": {
        "type": "string"
      },
      "type": "array",
      "x-khp-types": [
        "Element"
      ]
    },
    "placement": {
      "description": "Where in the stacking order",
      "enum": [
        "front",
        "forward",
        "backward",
        "back"
      ],
      "type": "string"
    }
  },
  "required": [
    "ids",
    "placement"
  ],
  "type": "object"
}
```

Generated from the command list of @kition/board-darwin-arm64@0.1.0 and the kit itself (board_commands through @kition/cli@0.1.1, built from KitionAI/kition-board@e78c190).
