# SortingInstruction.OrderBy Property

> Gets or sets the table column name to order the data by.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 26.0
- **Namespace:** `TXTextControl.DocumentServer.DataShaping`
- **Package:** `TXTextControl.TextControl.WinForms.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 Windows Forms > Reference > TXTextControl.DocumentServer.DataShaping > SortingInstruction.OrderBy Property
- **407 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datashaping/sortinginstruction/orderby-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datashaping/sortinginstruction/orderby-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datashaping/sortinginstruction/orderby-property/llms-full.txt

---

### Description

Gets or sets the table column name to order the data by.

### Syntax

```csharp
public string OrderBy { get; set; }
```

```vbnet
Public Property OrderBy As String
```

### Examples

The following example uses `SortingInstruction.OrderBy` to configure order by as part of the sorting instruction workflow. The configured value is checked before the workflow continues.

```csharp
sortingInstruction.OrderBy = "Quarterly report";
if (!string.IsNullOrWhiteSpace(sortingInstruction.OrderBy))
{
    Console.WriteLine($"Order By: {sortingInstruction.OrderBy}");
}
```

```vbnet
sortingInstruction.OrderBy = "Quarterly report"
If Not String.IsNullOrWhiteSpace(sortingInstruction.OrderBy) Then
    Console.WriteLine($"Order By: {sortingInstruction.OrderBy}")
End If
```

---

## Nearby

- **Previous:** [SortingInstruction.Culture Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datashaping/sortinginstruction/culture-property/llms-full.txt)
- **Next:** [SortingInstruction.SortOrder Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datashaping/sortinginstruction/sortorder-property/llms-full.txt)
