# CollectionSortItem Class

> Stores data about fields that viewers use for sorting collection items.

- Product: Adobe PDF Library 18
- Language: .NET
- Version: APDFL18.0.5PlusP2e
- HTML page: https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/CollectionSortItem
- Version index: https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/llms.txt

```csharp
class CollectionSortItem : SystemIDisposable
```

**Namespace:** `Datalogics::PDFL`

**Inherits from:** `SystemIDisposable`

## Description

Stores data about fields that viewers use for sorting collection items.

Collections are aslo known as portfolios.

**Referenced by:** [`Collection`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/Collection.md), [`CollectionSortItem`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/CollectionSortItem.md)

**Uses types:** [`CollectionSortItem`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/CollectionSortItem.md)

## Constructors

### CollectionSortItem

```csharp
Datalogics.PDFL.CollectionSortItem.CollectionSortItem(string fieldID, bool order)
```

*constructor*

**Parameters**

- `fieldID` (`string`): the schema field's id.
- `order` (`bool`): true for ascending, false for descending

CCollectionSortItem allows to construct sort item which will be used for collection sorting.

## Properties

### Ascending

```csharp
bool Datalogics.PDFL.CollectionSortItem.Ascending { get; }
```

### Name

```csharp
string Datalogics.PDFL.CollectionSortItem.Name { get; }
```

## Methods

### Dispose

```csharp
void Datalogics.PDFL.CollectionSortItem.Dispose()
```

**Returns:** `void`
