> This page is for Designer API.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.webflow.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.webflow.com/_mcp/server.

# Move collection before target (Beta)

> Move a variable collection to appear before another collection in the Variables panel.

## `collection.moveBefore(target)`

Moves this variable collection so that it appears immediately before `target` in the Variables panel display order.

The display order controls how collections are listed in the Webflow Designer's Variables panel. This method does not affect variable values or references.

> **Beta**
>
> These methods are in public beta and may change with future releases.

### Syntax

```typescript
collection.moveBefore(target: VariableCollection): Promise<null>
```

### Parameters

* **target**: *VariableCollection* — The collection before which this collection should be positioned.

### Returns

**Promise\<`null`>**

A Promise that resolves to `null` when the reorder is complete.

### Example

```typescript
const collections = await webflow.getAllVariableCollections();

// Move the last collection to the front
if (collections.length >= 2) {
  const [first, ...rest] = collections;
  const last = rest[rest.length - 1];

  await last.moveBefore(first);
  console.log('Collection moved to front');
}
```

[Try this example](https://webflow.com/oauth/authorize?response_type=code\&client_id=19511de1ec410f9228d8dcbc9420e67916dea80d86d18f0c9a533eb475ea0f62)

### Designer Ability

| Designer Ability       | Locale | Branch | Workflow | Sitemode |
| :--------------------- | :----- | :----- | :------- | :------- |
| **canModifyVariables** | Any    | Main   | Canvas   | Design   |