# Reorder Comma Separated List

> Reorder the elements in a comma separated list.

- ID: `reverse_comma_separated_list`
- Type: Block
- Category: [Strings](https://inventor.bot/docs/reference/blocks/strings.md)

- Value block: it can be used directly inside expressions, e.g. `"Result: " + reverse_comma_separated_list(Args{...})`.

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `text` | yes | Comma separated list to reorder. | e.g. `"one,two,three"` |
| `sort` |  | Order of the results. | `"Normal"`, `"Reverse"`, `"Random"`, `"Alphabetical"`, `"Reverse Alphabetical"`, `"Ascending Numeric"`, `"Descending Numeric"` |

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `string` | Reordered list. | e.g. `"three,two,one"` |

**Example**

```go
reverseCommaSeparated := reverse_comma_separated_list(Args{text: "one,two,three"})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "String: " + reverseCommaSeparated,
})
```