# Sort by

## Option 1: Use monday.com´s native sorting

If your sorting order always stays the same, you can simply use monday.com´s built-in sorting options. Option 1 is perfect if your sorting in monday.com doesn’t change often and you want your exports to always follow your live board view.

{% hint style="warning" %}
If you want to use a **specific sorting order that’s independent from the current sorting in your board**, you’ll need to use **Option 2**.

Option 2 is also recommended if you want to **combine** **sorting, filtering and/or grouping** in more complex ways, or if you’d like to apply sorting as part of an **automation**.

Due to limitations in monday.com’s app framework, sorting, filtering, and grouping together aren’t natively supported. That’s why we’ve built our own solution which lets you define fully custom sorting and filtering logic directly inside your template.
{% endhint %}

1. **Open your monday.com board**\
   Go to the board view of the board that contains the items you want to export.
2. **Sort your items** \
   Use monday.com´s built-in sorting options to arrange your items in the desired order (e.g. by date, priority, status or manually). \
   Learn more about sorting items in monday.com: [How to sort columns and items](https://support.monday.com/hc/en-us/articles/360001381699-How-to-sort-columns-and-items)
3. **Open the DocExport view**\
   Once sorted, open the DocExport view in the board. The sorting you apply in your board will automatically appear in the **DocExport preview**.
4. **Export your document**\
   When you create a document (via the 'Board Print' or any template), the **current board sorting** is always used.

## Option 2: Use DocExport’s Dynamic Table feature for sorting

{% embed url="<https://youtu.be/TdBTKctKgMg?si=eD-zSO6MSbA3eBv3&t=978>" %}

If you need a **fixed sorting order** that stays the same regardless of how your monday board is currently sorted, you can use our [**Dynamic Table**](https://help.docexport.com/features/dynamic-tables) feature.

With Dynamic Tables, you can define **custom sorting logic** — for example, always sort by a specific date column — and this sorting will remain consistent, even if someone changes the board view order in monday.com.

The 'Sorty by' Feature lets you sort your items by order of the board or other columns you use.

Learn how to create a Dynamic Table and add sorting logic to your template [here](https://help.docexport.com/features/dynamic-tables).

<figure><img src="https://1159009676-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMnVzL8c1pE5zXO95iUKm%2Fuploads%2FT4ZvITVJg5OPqTkpDx4M%2FDocExport_Sortby.png?alt=media&#x26;token=a5d74f76-8c76-4c4d-8651-8d971b3028ae" alt=""><figcaption></figcaption></figure>

### **Combine sorting with filters**

You can still use filters together with either sorting option.&#x20;

**Option 1:** Apply a board filter to your view and check on 'apply board filter' in DocExport. You will get a live preview of your sorted **and** filtered document, that you can download as a PDF or Word file.

Learn more about applying board filters [here](https://help.docexport.com/template/board-level-filter).

**Option 2:** You can **combine sorting with filters** directly via the 'Dynamic table' feature. All settings will be saved in the table template that is created for you. This way you can easily combine Grouping, Filtering and Sorting and implement it into your template. \
\
If you are still missing something, you can check out even more [advanced filtering](https://help.docexport.com/template/advanced-filtering) options.

{% hint style="warning" %}
**Note:** Filtering and sorting by ***Mirror*****&#x20;or&#x20;*****Formula*** columns is currently not available.\
This is due to limitations in the monday.com API, which does not provide the required data for these column types.
{% endhint %}
