# 5 number variables: How to order them according to value?

**URL:** https://community.thunkable.com/t/5-number-variables-how-to-order-them-according-to-value/564250
**Category:** Questions about Thunkable X
**Tags:** beginner
**Created:** [April 28, 2020, 8:44am UTC](https://community.thunkable.com/t/5-number-variables-how-to-order-them-according-to-value/564250 "2020-04-28T08:44:20Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![hecticPastry](https://avatars.discourse-cdn.com/v4/letter/h/f07891/32.png) [@hecticPastry](https://community.thunkable.com/u/hecticPastry)
#### Post date: [April 28, 2020, 8:44am UTC](https://community.thunkable.com/t/5-number-variables-how-to-order-them-according-to-value/564250/1 "2020-04-28T08:44:20Z")

</div>

Hi Thunkers,  
I have a quiz app on the go and I’m working on feedback on errors. I have variables counting the number of times a particular error is made and there are approximately 5 possible types of error. On the final results/feedback screen, I want to show the user which error was made most frequently at the top of the screen and go down through the error possibilities to the error made least appearing at the bottom. I’m new to this so I need your help if you can spare me a little time.  
Let’s say the user has var1=5 (errors) var2=4, var3=3, var4=2 and var5=1. Now these results should appear in 5 labels in a column starting with the most problematic error at the top and the least problematic at the bottom. Can it be done without a listpicker?

---

<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: [April 28, 2020, 9:31am UTC](https://community.thunkable.com/t/5-number-variables-how-to-order-them-according-to-value/564250/2 "2020-04-28T09:31:51Z")

</div>

Hey @hecticPastry 👋

You can use the `sort numeric` list block to show your variables in increasing (or decreasing) order.

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

Hope that helps!

---

<div class="post-metadata">

### Author: ![hecticPastry](https://avatars.discourse-cdn.com/v4/letter/h/f07891/32.png) [@hecticPastry](https://community.thunkable.com/u/hecticPastry)
#### Post date: [April 28, 2020, 11:03am UTC](https://community.thunkable.com/t/5-number-variables-how-to-order-them-according-to-value/564250/3 "2020-04-28T11:03:56Z")

</div>

Yes, thank you. That is just the job.  
Is there a way to remove variables in the list which are equal to zero?

---

<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: [April 28, 2020, 11:12am UTC](https://community.thunkable.com/t/5-number-variables-how-to-order-them-according-to-value/564250/4 "2020-04-28T11:12:05Z")

</div>

No problem at all.

You need to add in some logic to do this manually, so if the value is equal to 0 you would just exclude it from the list.

You can find the if statement in the [control](https://docs.thunkable.com/control) blocks.

---

<div class="post-metadata">

### Author: ![hecticPastry](https://avatars.discourse-cdn.com/v4/letter/h/f07891/32.png) [@hecticPastry](https://community.thunkable.com/u/hecticPastry)
#### Post date: [April 28, 2020, 11:16am UTC](https://community.thunkable.com/t/5-number-variables-how-to-order-them-according-to-value/564250/5 "2020-04-28T11:16:04Z")

</div>

Many thanks, Dom.

---

<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:29am UTC](https://community.thunkable.com/t/5-number-variables-how-to-order-them-according-to-value/564250/6 "2024-11-08T11:29:37Z")

</div>


