# Alert being shown in reverse order

**URL:** <https://community.thunkable.com/t/alert-being-shown-in-reverse-order/595792>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [June 5, 2020, 3:06pm UTC](https://community.thunkable.com/t/alert-being-shown-in-reverse-order/595792 "2020-06-05T15:06:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thestrengthinstitute](https://avatars.discourse-cdn.com/v4/letter/t/48db29/32.png) [@thestrengthinstitute](https://community.thunkable.com/u/thestrengthinstitute)\
**Post date:** [June 5, 2020, 3:06pm UTC](https://community.thunkable.com/t/alert-being-shown-in-reverse-order/595792/1 "2020-06-05T15:06:24Z")

</div>

Hi all,

Need help with a strange problem. So I have 2 alerts on a button click to check values. ![Untitled](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/a/dad88a60ca6e2cb2ab9729f17b131e29c5f21e40.png)

However, the alerts are being shown in reverse order; instead of Blue and then Red, it is showing Red and then Blue. Any ideas anyone as to what I might be doing wrong?

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [June 5, 2020, 5:42pm UTC](https://community.thunkable.com/t/alert-being-shown-in-reverse-order/595792/2 "2020-06-05T17:42:04Z")

</div>

I think these are actually working as expected @thestrengthinstitute

When you click the button the blue alert is shown, then the red alert gets displayed _on top of_ the blue one.

From a UX perspective, you won’t see the blue alert until the red alert is dismissed.

* * *

Rather than stacking blocks from top to bottom and having everything run sequentially, you should consider **nesting** your blocks and making use of the `when Show is done` callback:

![callback_focus](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/3/d3b96d25abf82e2e94728be1ed794f3a9eb53c4c.png)

For example, show the first alert first, and when that’s done, then go and show the relevant second alert:

 ![alert_callback](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/6/46a149d424f06a81165511fa1e43005ac965fc3c.png)

Hope that helps.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 11:28am UTC](https://community.thunkable.com/t/alert-being-shown-in-reverse-order/595792/3 "2024-11-08T11:28:03Z")

</div>


