# ShapeMixin.moveAfter
Moves this shape immediately after the given sibling in render order.

{/* Do not edit this file. It is automatically generated by API Documenter. */}

## ShapeMixin.moveAfter() method

Moves this shape immediately after the given sibling in render order.

**Signature:**

```typescript
moveAfter(sibling: Shape): void;
```

## Parameters

<table>
  <thead>
    <tr>
      <th>
        Parameter
      </th>

      <th>
        Type
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        sibling
      </td>

      <td>
        [Shape](/en/creator-api/nodes/shape)
      </td>

      <td>
        The shape to move this shape after.
      </td>
    </tr>
  </tbody>
</table>

**Returns:** void

## Remarks

If `sibling` has a different parent, this shape is reparented to the sibling's parent as part of the move.

## Example

```ts
const [first, second] = group.shapes;
first.moveAfter(second);
```
