# Help sorting repeating group

**URL:** <https://forum.bubble.io/t/help-sorting-repeating-group/25634>\
**Category:** Need help\
**Created:** [March 11, 2018, 6:42pm UTC](https://forum.bubble.io/t/help-sorting-repeating-group/25634 "2018-03-11T18:42:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![michaelchang516](https://avatars.discourse-cdn.com/v4/letter/m/c0e974/32.png) [@michaelchang516](https://forum.bubble.io/u/michaelchang516)\
**Post date:** [March 11, 2018, 6:42pm UTC](https://forum.bubble.io/t/help-sorting-repeating-group/25634/1 "2018-03-11T18:42:17Z")

</div>

Hey guys,

Could really use your help if you know how to do this.

I’d like to sort a repeating group by first showing entries in the future (with those closest to current date/time) appearing first), and once there are no more future entries, I’d like it to show past entries (with those closest to current/date appearing first). The image below explains how I’d like it to be sorted.

 ![29%20PM](https://us1.discourse-cdn.com/bubble/original/3X/c/2/c2c27e402145b7217be30c69bec2243489ca3965.png)

Does anyone who how to achieve this? Thanks

---

<div class="post-metadata">

**Author:** ![dbevan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/dbevan/32/157741_2.png) [@dbevan](https://forum.bubble.io/u/dbevan)\
**Post date:** [March 11, 2018, 7:19pm UTC](https://forum.bubble.io/t/help-sorting-repeating-group/25634/2 "2018-03-11T19:19:29Z")

</div>

Try the following:

Search For Item’s (Filtered by creation date \> current date and sorted by creation date / descending = no) date

MERGED WIH

Search For Item’s (Filtered by creation date \< current date and sorted by creation date / descending = yes) date

Hope this works for you,  
Daniel

---

<div class="post-metadata">

**Author:** ![michaelchang516](https://avatars.discourse-cdn.com/v4/letter/m/c0e974/32.png) [@michaelchang516](https://forum.bubble.io/u/michaelchang516)\
**Post date:** [March 11, 2018, 7:45pm UTC](https://forum.bubble.io/t/help-sorting-repeating-group/25634/3 "2018-03-11T19:45:40Z")

</div>

Hugely helpful, thanks Daniel!

---

<div class="post-metadata">

**Author:** ![shubha.chakravarthy](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@shubha.chakravarthy](https://forum.bubble.io/u/shubha.chakravarthy)\
**Post date:** [April 26, 2018, 3:16pm UTC](https://forum.bubble.io/t/help-sorting-repeating-group/25634/4 "2018-04-26T15:16:42Z")

</div>

I have a similar question, slightly different sort. I have a list of items that need to be displayed in ascending order of the field “Sort order” - have not been able to figure this out. Any help would be much appreciated, thanks!!

---

<div class="post-metadata">

**Author:** ![dbevan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/dbevan/32/157741_2.png) [@dbevan](https://forum.bubble.io/u/dbevan)\
**Post date:** [April 26, 2018, 6:37pm UTC](https://forum.bubble.io/t/help-sorting-repeating-group/25634/5 "2018-04-26T18:37:00Z")

</div>

What data type is the Sort Order field? If it’s a number field, just to sorted by Sort Order:descending = no

---

<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:** [May 20, 2018, 6:42pm UTC](https://forum.bubble.io/t/help-sorting-repeating-group/25634/6 "2018-05-20T18:42:20Z")

</div>

Closed on May 20, 2018, 6:42pm UTC

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