# Sorting and Filtering

> Sort and filter merge block rows: the Filter and Sort dialog of the Document Editor, FilterInstruction, SortingInstruction, BlockMergingCondition and Apply.

- **Product:** TX Text Control .NET Server
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control .NET Server > Mail Merge and Reporting > Sorting and Filtering
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/mail-merge/sorting-filtering/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/mail-merge/sorting-filtering/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/mail-merge/sorting-filtering/llms-full.txt

---

## On This Page

- [How Sorting and Filtering Works](https://docs.textcontrol.com/tx-text-control-dotnet-server/mail-merge/sorting-filtering/#how-sorting-and-filtering-works)
- [Filter Instructions](https://docs.textcontrol.com/tx-text-control-dotnet-server/mail-merge/sorting-filtering/#filter-instructions)
- [Sorting Instructions](https://docs.textcontrol.com/tx-text-control-dotnet-server/mail-merge/sorting-filtering/#sorting-instructions)
- [Set Instructions When Inserting a Block](https://docs.textcontrol.com/tx-text-control-dotnet-server/mail-merge/sorting-filtering/#set-instructions-when-inserting-a-block)
- [Change the Instructions of an Existing Block](https://docs.textcontrol.com/tx-text-control-dotnet-server/mail-merge/sorting-filtering/#change-the-instructions-of-an-existing-block)
- [Merge a Block Only for Matching Parent Rows](https://docs.textcontrol.com/tx-text-control-dotnet-server/mail-merge/sorting-filtering/#merge-a-block-only-for-matching-parent-rows)
- [Where the Instructions Are Stored](https://docs.textcontrol.com/tx-text-control-dotnet-server/mail-merge/sorting-filtering/#where-the-instructions-are-stored)
- [Define Rules in the Document Editor](https://docs.textcontrol.com/tx-text-control-dotnet-server/mail-merge/sorting-filtering/#define-rules-in-the-document-editor)
- [Next Steps](https://docs.textcontrol.com/tx-text-control-dotnet-server/mail-merge/sorting-filtering/#next-steps)

---

## Nearby

- **Previous:** [Conditional Content](https://docs.textcontrol.com/tx-text-control-dotnet-server/mail-merge/conditional-content/llms.txt)
- **Next:** [Styling](https://docs.textcontrol.com/tx-text-control-dotnet-server/mail-merge/styling/llms.txt)
