> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# NSArchiveOrderByInfo

> Carries information about an ordering criterion for an archive.

Carries information about an ordering criterion for an archive.

## Constructors

### NSArchiveOrderByInfo()

```crmscript theme={null}
NSArchiveOrderByInfo
```

Initializes a new instance of the NSArchiveOrderByInfo class.

## Methods

## GetDirection()

```crmscript theme={null}
Integer GetDirection()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Direction to order. See \<xref href="CRMScript.NetServer.OrderBySortType" data-throw-if-not-resolved="false">\</xref>

**Example:**

```crmscript theme={null}
NSArchiveOrderByInfo thing;
Integer direction = thing.GetDirection();
```

## GetName()

```crmscript theme={null}
String GetName()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Programmatic name of the column to order by, semantically the same as the NSArchiveColumnInfo.Name.

**Example:**

```crmscript theme={null}
NSArchiveOrderByInfo thing;
String name = thing.GetName();
```

## SetDirection(Integer)

```crmscript theme={null}
Void SetDirection(Integer direction)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSArchiveOrderByInfo thing;
Integer direction;
thing.SetDirection(direction);
```

## SetName(String)

```crmscript theme={null}
Void SetName(String name)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSArchiveOrderByInfo thing;
String name;
thing.SetName(name);
```


## Related topics

- [NSArchiveConfiguration](/en/automation/crmscript/reference/CRMScript.NetServer.NSArchiveConfiguration.md)
- [Archive agent](/en/automation/crmscript/netserver/crmscript-archiveagent.md)
- [NSFindAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSFindAgent.md)
- [Namespace CRMScript.NetServer](/en/automation/crmscript/reference/CRMScript.NetServer.md)
- [SuperOffice.WebApi.Data.ArchiveOrderByInfo](/en/api/reference/webapi/SuperOffice.WebApi.Data.ArchiveOrderByInfo.md)
- [IArchiveProvider](/en/api/plugins/quote-connectors/api/iarchiveprovider.md)
