---
description: How to sort your assets vertically
---

# LAYERS & SORTING

<figure><img src="https://717747526-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FonbNaZHYfX7cze8ubfnQ%2Fuploads%2FBgFqLpSrhq3KHuL3Ddoj%2Fimage.png?alt=media&#x26;token=88dfb822-0be6-4f30-9448-25f2e1a9c6cd" alt=""><figcaption></figcaption></figure>

In several tools, you will see the **Layer** option. That dropdown menu allows you to sort your assets on specific layers, which will be above or below some others.&#x20;

{% hint style="warning" %}
_Layer management is only available for Patterns, Materials, Path and Objects._\
\
_The other tools will have their specific layers, which are greyed out in the dropdown menu._
{% endhint %}

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdz7jR0Pff74O-a_n2p_9cvlBG2yjMqY8nowtvm1n0bpkTLGoZvtQa_ReCWG2ckjIuCVB6Fq5GZVxxE_PQJwscAtBjyr2dMFZr7M_8BWCJB9hvoZhphv5hGFjzrOySMiSd7T6jSeQ?key=yb7pPfKqh-ggF4DAtKAOvkMp" alt=""><figcaption></figcaption></figure>

By default, assets are placed on **100: User Layer 1,** unless they use a specific layer as mentioned abov&#x65;**.** The higher the number is, the higher the asset will be appear vertically. For example, assets placed on **100: User Layer 1** will be under **200: User Layer 2.**

{% hint style="info" %}
_**Dungeondraft 1.2.0.0** adds_ [_keyboard shortcuts_](../mouse-and-keyboard-shortcuts#docs-internal-guid-738aba63-7fff-4988-be07-1a373d0792b9) _for fast layer change._
{% endhint %}

### **REORDER AFTER PLACING**

You will be able to select the **layer** of most assets **before placing them**. If you're not satisfied, you can always set the asset to **another layer** in the [**Selection Tool**](../all-the-tools/select-tool). \
\
If two assets are on the **same layer**, you can also choose to bring one to the **front** or to send it to the **back** using the [**Selection Tool**](../all-the-tools/select-tool).

<figure><img src="https://717747526-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FonbNaZHYfX7cze8ubfnQ%2Fuploads%2FZIPLI4w0lorn14NMD5rd%2Fimage.png?alt=media&#x26;token=559f883f-d3b6-4584-b772-8710585a54d7" alt=""><figcaption><p>Use this in the Selection Tool for assets that are on the same layer</p></figcaption></figure>

<figure><img src="https://717747526-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FonbNaZHYfX7cze8ubfnQ%2Fuploads%2FtWNl2Jb90D5XiYzioGbH%2Fezgif-5ff33a5ac0901a.webp?alt=media&#x26;token=fbc8fbfb-baf1-4f37-96b6-da1256edfaac" alt=""><figcaption><p>How layers work</p></figcaption></figure>

{% hint style="danger" %}
**Layers** and **Levels** are two different things:

* **Layers** allow you to manage assets **relative to each other.**
* **Levels** allow you to create several maps **on top of each other**, mostly used for adding **floors** to a building or **overlays** to a map.
{% endhint %}

***

### ADDING MORE LAYERS (WORKAROUND)

It is possible to **add more layers** to a map by **editing** the **map file** with a **text editor**.&#x20;

* Make sure Dungeondraft is closed
* Open your `[name].dungeondraft_map` file with any text editor
* Find the "layers" section
* Add another layer with a different number where you need (make sure to follow the same text pattern as for other layers)
* Save the file and Open it in Dungeondraft to see your new layer appear

{% hint style="warning" %}
_**Make sure to have a backup of your map before modifying the file.**_
{% endhint %}

<figure><img src="https://717747526-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FonbNaZHYfX7cze8ubfnQ%2Fuploads%2FhBDfOmH1PnnO8vJ2cMfd%2Fimage.png?alt=media&#x26;token=7c89524c-2ce2-4b57-8651-c477c7131eec" alt=""><figcaption><p>That layer was added manually in the .dungeondraft_map file</p></figcaption></figure>

<figure><img src="https://717747526-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FonbNaZHYfX7cze8ubfnQ%2Fuploads%2FHGiNdUlUPyyBuRKT7WEX%2Fimage.png?alt=media&#x26;token=ed7824f6-7412-431a-a26d-44f59434fa91" alt=""><figcaption></figcaption></figure>



***

{% hint style="info" %}
## Related Mods

* [\_Lib](../custom-assets-and-mods/some-useful-mods/_lib) allows you to see **custom layers** in the [Selection Tool's Layer filter](../../all-the-tools/select-tool/left-tab#layers).
* [Minor Utils](../custom-assets-and-mods/some-useful-mods/minor-utils) adds keyboard shortcuts for **sorting** and **layer management**.
{% endhint %}
