# Sort a repeating group

**URL:** <https://forum.bubble.io/t/sort-a-repeating-group/99736>\
**Category:** Need help\
**Created:** [July 1, 2020, 3:19am UTC](https://forum.bubble.io/t/sort-a-repeating-group/99736 "2020-07-01T03:19:36Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![hacker](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/hacker/32/88281_2.png) [@hacker](https://forum.bubble.io/u/hacker)\
**Post date:** [July 1, 2020, 3:19am UTC](https://forum.bubble.io/t/sort-a-repeating-group/99736/1 "2020-07-01T03:19:36Z")

</div>

Hi,

I want to sort a repeating group by name, and I’ve tried it, but even if I sort it by creation date it doesn’t change the order.

I already tried “descending” in “yes” and “no”, and it always shows me the same order.

Thanks in advance. 🙂

---

<div class="post-metadata">

**Author:** ![johnny](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/johnny/32/203020_2.png) [@johnny](https://forum.bubble.io/u/johnny)\
**Post date:** [July 1, 2020, 3:35am UTC](https://forum.bubble.io/t/sort-a-repeating-group/99736/2 "2020-07-01T03:35:43Z")

</div>

Hi @hacker,

All you need to do is in your data type of your repeating group, if you use the Do a search for… method, just simply add a field to sort, in your case it’d be the name field, you can choose descending is no for it to sort least to greatest or A-Z vice versa.

Let me know if this helped!

---

<div class="post-metadata">

**Author:** ![hacker](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/hacker/32/88281_2.png) [@hacker](https://forum.bubble.io/u/hacker)\
**Post date:** [July 1, 2020, 4:58am UTC](https://forum.bubble.io/t/sort-a-repeating-group/99736/3 "2020-07-01T04:58:37Z")

</div>

Thanks

I already tried that, but it still appears the same. Regardless of the “yes” or “no” in the descending. ☹

 ![Captura de Pantalla 2020-06-30 a la(s) 23.55.11](https://us1.discourse-cdn.com/bubble/original/3X/5/9/5930fed5353674502f6a57389e004700a0e45483.png)

I really don´t know why. If you know another way, please tell me. 🙂

But anyway thanks

---

<div class="post-metadata">

**Author:** ![johnny](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/johnny/32/203020_2.png) [@johnny](https://forum.bubble.io/u/johnny)\
**Post date:** [July 1, 2020, 2:34pm UTC](https://forum.bubble.io/t/sort-a-repeating-group/99736/4 "2020-07-01T14:34:04Z")

</div>

How many pieces of data do you have in your database with that type?

---

<div class="post-metadata">

**Author:** ![nurzhan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/nurzhan/32/64042_2.png) [@nurzhan](https://forum.bubble.io/u/nurzhan)\
**Post date:** [July 1, 2020, 2:41pm UTC](https://forum.bubble.io/t/sort-a-repeating-group/99736/5 "2020-07-01T14:41:12Z")

</div>

as from what i see you need to use :filter or :soring at RepeatingGroupPatient filter  
try Search for Patients:filter

---

<div class="post-metadata">

**Author:** ![SerPounce](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/serpounce/32/62068_2.png) [@SerPounce](https://forum.bubble.io/u/SerPounce)\
**Post date:** [July 1, 2020, 2:51pm UTC](https://forum.bubble.io/t/sort-a-repeating-group/99736/6 "2020-07-01T14:51:29Z")

</div>

This should be working as you’ve laid out. If you share additional screenshots of your data types and results, or just read access to your app we’ll be able to diagnose the issue.

---

<div class="post-metadata">

**Author:** ![hacker](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/hacker/32/88281_2.png) [@hacker](https://forum.bubble.io/u/hacker)\
**Post date:** [July 1, 2020, 5:29pm UTC](https://forum.bubble.io/t/sort-a-repeating-group/99736/7 "2020-07-01T17:29:13Z")

</div>

I had not realized that I did not have the “sort” configured in the “display list” of repeating group. Now it works perfectly.

 ![Captura de Pantalla 2020-07-01 a la(s) 12.16.02](https://us1.discourse-cdn.com/bubble/original/3X/8/6/860d67a2d81ba7c7ea1d9e455d6f721e00aee821.png)

Sorry for so much confusion.

Thank you all. 😀 💻

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [September 9, 2020, 3:19am UTC](https://forum.bubble.io/t/sort-a-repeating-group/99736/8 "2020-09-09T03:19:38Z")

</div>

Closed on September 9, 2020, 3:19am UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
