# Reverse Array

### What It Does

Flips the order of items in a list, making the last element first and the first element last. It creates a new reversed list without changing the original.

### Inputs

| Name  | Description             | Type | Required |
| ----- | ----------------------- | ---- | -------- |
| array | The list to be reversed | List | Yes      |

### Outputs

| Name  | Description       | Type |
| ----- | ----------------- | ---- |
| value | The reversed list | List |

![Reverse Array Example](https://3657049418-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy0SFXZjN1sdgdxYM7QPE%2Fuploads%2F4Q5f9duHVMcPYvLdWeAQ%2FScreenshot%202025-04-17%20at%206.32.42%E2%80%AFPM.png?alt=media\&token=01d10634-8ffa-4be5-9376-b6a307f13761)

### How to Use It

1. Drag the Reverse Array node into your graph.
2. Connect your list (like `[Red, Green, Blue]`) to the "array" input.
3. The output will be the list in reverse order (e.g., `[Blue, Green, Red]`).

<figure><img src="https://3657049418-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy0SFXZjN1sdgdxYM7QPE%2Fuploads%2FJ94ujxG7C5wfjgxEdv00%2FCleanShot%202025-05-07%20at%2018.58.34%402x.png?alt=media&#x26;token=3d491126-a91e-4fc1-8ab1-5ad978631a60" alt=""><figcaption></figcaption></figure>

### Tips

* This node preserves the original list and outputs a new reversed copy.
* Useful for changing the visual priority or sequence of design elements.

### See Also

* [**Sort Array**](https://documentation.tokens.studio/graph-engine/available-nodes/array/sort-array): For arranging items based on specific criteria rather than simply reversing them.
* [**Array Filter**](https://documentation.tokens.studio/graph-engine/available-nodes/array/array-filter): For selectively including or excluding items from a list.

### Use Cases

* **Reversing Color Gradients**: Flip a color sequence to create an opposite gradient direction.
* **Priority Inversion**: Transform a list sorted by importance to focus on different priorities.
* **Visual Hierarchy Experimentation**: Test alternative arrangements of design elements by reversing their order.
