# MergeBlockInfo.SortingInstructions Property

> Gets or sets a list of sorting instructions which are used to sort the data rows before merging. To not sort the block data, just leave this property empty or set it to null.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 26.0
- **Namespace:** `TXTextControl.DocumentServer.DataSources`
- **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.DataSources > MergeBlockInfo.SortingInstructions Property
- **357 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/mergeblockinfo/sortinginstructions-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/mergeblockinfo/sortinginstructions-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/mergeblockinfo/sortinginstructions-property/llms-full.txt

---

### Description

Gets or sets a list of sorting instructions which are used to sort the data rows before merging. To not sort the block data, just leave this property empty or set it to null.

### Syntax

```csharp
public List<SortingInstruction> SortingInstructions { get; set; }
```

```vbnet
Public Property SortingInstructions As List(Of SortingInstruction)
```

### Examples

The following example uses `MergeBlockInfo.SortingInstructions` to configure sorting instructions as part of the merge block info workflow. The change is then applied to the active document or user interface.

```csharp
mergeBlockInfo.SortingInstructions = new List<TXTextControl.DocumentServer.DataShaping.SortingInstruction>();
mergeBlockInfo.Apply();
```

```vbnet
mergeBlockInfo.SortingInstructions = New List(Of TXTextControl.DocumentServer.DataShaping.SortingInstruction)()
mergeBlockInfo.Apply()
```

---

## Nearby

- **Previous:** [MergeBlockInfo.MergeFields Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/mergeblockinfo/mergefields-property/llms-full.txt)
- **Next:** [MergeBlockInfo.TableName Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/mergeblockinfo/tablename-property/llms-full.txt)
