> ## Documentation Index
> Fetch the complete documentation index at: https://superofficeas-bugfix-ty-screen-designer-paradox.mintlify.site/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);
```
