# Z sorting

**URL:** <https://forum.defold.com/t/z-sorting/81550>\
**Category:** Questions\
**Created:** [September 13, 2025, 2:47pm UTC](https://forum.defold.com/t/z-sorting/81550 "2025-09-13T14:47:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Insality](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/insality/32/39737_2.png) [@Insality](https://forum.defold.com/u/Insality)\
**Post date:** [September 13, 2025, 2:55pm UTC](https://forum.defold.com/t/z-sorting/81550/2 "2025-09-13T14:55:10Z")

</div>

GUI render nodes in the order they appear in the node tree (learn more here: [Draw calls and Defold](https://forum.defold.com/t/draw-calls-and-defold/4674)).

You can use layers to separate your text nodes. To do this, you should:

- Add a layer called **“text”** in your GUI layers.
- Assign the **“text”** layer to all your text nodes.

If a text node is placed inside a GUI template and you adjust layers inside that template, you must also add the same layers to all GUIs that use this template.

---

_[View the full topic](https://forum.defold.com/t/z-sorting/81550)._
