# Sorting and Filtering

> Filter and sort the rows of merge blocks in WPF: FilterInstruction and SortingInstruction, Apply, the WPF FilterAndSortDialog and BlockMergingCondition.

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

---

## On This Page

- [How Sorting and Filtering Works](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/mail-merge/sorting-filtering/#how-sorting-and-filtering-works)
- [Filter Instructions](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/mail-merge/sorting-filtering/#filter-instructions)
- [Sorting Instructions](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/mail-merge/sorting-filtering/#sorting-instructions)
- [Set Instructions When Inserting a Block](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/mail-merge/sorting-filtering/#set-instructions-when-inserting-a-block)
- [Change the Block at the Input Position](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/mail-merge/sorting-filtering/#change-the-block-at-the-input-position)
- [Let Users Edit the Instructions](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/mail-merge/sorting-filtering/#let-users-edit-the-instructions)
- [Merge a Block Only for Matching Parent Rows](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/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-wpf/mail-merge/sorting-filtering/#where-the-instructions-are-stored)
- [Next Steps](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/mail-merge/sorting-filtering/#next-steps)

---

## Nearby

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