Skip to main content
Order a list with Clay

Order a list of values by a given order.

Updated over a week ago

Introduction

This integration enables users to order a list of values within Clay using a specified order. The "Order a list" action allows for the sorting of up to 100 items based on a provided sequence. This functionality is particularly useful for organizing data based on specific parameters, customizing the display order of information within Clay workflows.

Input

Name

Is Optional

Description

Type

List of Values

The list of values you want to order. This can either be an Array, or a list separated by a comma

text

Order Operation

When evaluating the order, how should we match items in the list?

text

Order

The order you want the list to have. This is a list that should be separated by a comma. Use * as a wildcard. For example, if you wanted to arrange an array of emails, so that .edu addresses were at the end, you would enter '*, .edu'

text

Output

Name

Type

Ordered List Object

array

Ordered List String

text

Did this answer your question?