节点与集成

Sort

Use the Sort node to organize lists of items in a desired ordering, or generate a random selection.

Node parameters

Configure this node using the Type parameter.

Use the dropdown to select how you want to input the sorting from these options.

Simple

Performs an ascending or descending sort using the selected fields.

When you select this Type:

  • Use the Add Field To Sort By button to input the Field Name.
  • Select whether to use Ascending or Descending order.

Simple options

When you select Simple as the Type, you have the option to Disable Dot Notation. By default, n8n enables dot notation to reference child fields in the format parent.child. Use this option to disable dot notation (turned on) or to continue using dot (turned off).

Random

Creates a random order in the list.

Code

Input custom JavaScript code to perform the sort operation. This is a good option if a simple sort won't meet your needs.

Enter your custom JavaScript code in the Code input field.

Templates and examples

Browse Sort integration templates or search all templates

Related resources

Learn more about data structure and data flow in n8n workflows.

官方原文和授权

本页来自 N8N 英文官方网站固定快照,并转换成 xueai 静态页面。内容以 N8N 持续更新的官方页面为准。

来源、授权与修改

本站保留许可证、固定提交号、社区作者和修改说明,不代表 n8n 对本站背书。

查看许可证查看来源和修改说明