> For the complete documentation index, see [llms.txt](https://doc.duaer.com/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/build/sort.md).

# Sort items in Duaer

In Duaer, Sort reorders the current items by field. Type can be Simple, Random, or Code.
## Sort by one field

1. Search for Sort and connect it after a node that returns many items.
2. Leave Type on Simple.
3. Under Fields To Sort By, add a row: Field Name is the field, Order is Ascending or Descending.
4. Select Execute step. The output follows that field order.

Random shuffles the items. Code sorts with a short script. To keep only the first few after sorting, add Limit. Refer to [Cap how many items continue with Limit in Duaer](/build/limit.md).
## Questions

### Does Sort in Duaer drop items?

No. It only changes order. Use Limit or Filter when items should be removed.

