Skip to main content

Sort Tool

The Sort Tool sorts an array of row objects by a specified key and order (ascending or descending).
It is useful for workflows that need to organize tabular or structured data, such as sorting customers by total spend, dates, or any other property.

  • rows ¹ (array): Array of objects to sort.
  • key ¹ (string): The key/property name to sort by.
  • order ¹ (string): Sort order (asc for ascending, desc for descending).
  • requireToolUse (boolean, user config): Require tool use (forces the LLM to always call this tool; default: true)

    Note: When enabled, the node will retry tool calls up to the number of times set in Max Tool Retries in the AI Data Processing Node.

Sort Tool Node


(1) Provided by the AI Data Processing Node as a result of processing it's input.