> For the complete documentation index, see [llms.txt](https://doc.duaer.com/zh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.duaer.com/zh/build/sort.md).

# 在 Duaer 里用 Sort 排序条目

在 Duaer 里，Sort 按字段名重排当前条目。Type 可选 Simple、Random 或 Code。
## 按一个字段排

1. 搜索 Sort，接到条目很多的节点后面。
2. Type 保持 Simple。
3. 在 Fields To Sort By 里加一行：Field Name 填字段名，Order 选 Ascending 或 Descending。
4. 点执行此步骤。输出顺序按你设的字段排好。

Type 选 Random 时打乱顺序。选 Code 时用一小段代码决定先后。只想留下前几条，后面再接 Limit，见 [在 Duaer 里用 Limit 限制条数](/zh/build/limit.md)。
## Questions

### Duaer 的 Sort 会丢掉条目吗？

不会。它只改顺序。要丢掉多余条目用 Limit 或 Filter。

