# IndexOf(SortColumnDescription)

> Returns the index of the specified SortColumnDescription if it is contained in the collection; returns -1 otherwise.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.6/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public int IndexOf(SortColumnDescription desc)
```

### Parameters

**** (\[SortColumnDescription]\(/engine/6000.6/script-reference/unityengine/uielements/sortcolumndescription)): The description to locate in the [SortColumnDescriptions](/engine/6000.6/script-reference/unityengine/uielements/sortcolumndescriptions.md).

### Returns

| Type                                                       | Description                                                                                                                                                            |
| ---------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The index of the [SortColumnDescriptions](/engine/6000.6/script-reference/unityengine/uielements/sortcolumndescriptions.md) if found in the collection; otherwise, -1. |
