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

# Array Unique Rank

> Get unique values sorted by frequency

## Overview

The `unique-rank` transformation returns unique values from an array, sorted by their frequency of occurrence (most frequent first).

## Syntax

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
unique-rank(<variable>)
```

## Parameters

| Parameter  | Type  | Required | Description          |
| ---------- | ----- | -------- | -------------------- |
| `variable` | array | Yes      | The array to process |

## Examples

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
unique-rank(<variable>)
```
