# Sort depth on element inside container and scene

**URL:** https://phaser.discourse.group/t/sort-depth-on-element-inside-container-and-scene/13657
**Category:** Phaser 3
**Created:** [October 19, 2023, 7:57pm UTC](https://phaser.discourse.group/t/sort-depth-on-element-inside-container-and-scene/13657 "2023-10-19T19:57:05Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Rangerz132](https://avatars.discourse-cdn.com/v4/letter/r/cc9497/32.png) [@Rangerz132](https://phaser.discourse.group/u/Rangerz132)
#### Post date: [October 19, 2023, 7:57pm UTC](https://phaser.discourse.group/t/sort-depth-on-element-inside-container-and-scene/13657/1 "2023-10-19T19:57:06Z")

</div>

Hello! I’m facing an issue regarding the depth/sorting property.

I have a container which contains a text element (let’s call it **ContentContainer** ). The **ContentContainer** is a child of another container (let’s call it **ParentContainer** ). The **ParentContainer** is created and added to the scene. For now, everything is fine.

However, when the user click, a gameObject (ellipse) is created directly on the scene. Is there a way to have the ellipse behind every container? At the moment, the ellpise is on top of everything.

Thanks

---

<div class="post-metadata">

### Author: ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)
#### Post date: [October 19, 2023, 11:43pm UTC](https://phaser.discourse.group/t/sort-depth-on-element-inside-container-and-scene/13657/2 "2023-10-19T23:43:25Z")

</div>

```
this.sys.displayList.sendToBack(ellipse)

```
