# SortingInstruction Class

> The SortingInstruction class contains merge block data sorting information such as the sort order and the column name to sort the data rows after. It is used by the MergeBlockInfo class.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 26.0
- **Namespace:** `TXTextControl.DocumentServer.DataShaping`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXDocumentServer.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDocumentServer.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.DocumentServer.DataShaping > SortingInstruction Class
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datashaping/sortinginstruction/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datashaping/sortinginstruction/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datashaping/sortinginstruction/llms-full.txt

---

## On This Page

- [Description](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datashaping/sortinginstruction/#description)
- [Syntax](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datashaping/sortinginstruction/#syntax)
- [Examples](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datashaping/sortinginstruction/#examples)
- [Members](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datashaping/sortinginstruction/#members)

---

## In This Section

- [SortingInstruction Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datashaping/sortinginstruction/constructor/llms.txt): Initializes a new instance of the SortingInstruction class.
- [SortingInstruction.Culture Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datashaping/sortinginstruction/culture-property/llms.txt): Gets or sets the format provider for numerical value comparison. The default value for this property is the invariant culture.
- [SortingInstruction.OrderBy Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datashaping/sortinginstruction/orderby-property/llms.txt): Gets or sets the table column name to order the data by.
- [SortingInstruction.SortOrder Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datashaping/sortinginstruction/sortorder-property/llms.txt): Gets or sets the sort order (ascending / descending).

---

## Nearby

- **Previous:** [FilterInstruction.LogicalOperator Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datashaping/filterinstruction/logicaloperator-property/llms.txt)
- **Next:** [SortingInstruction Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datashaping/sortinginstruction/constructor/llms.txt)
