# How to sort date ranges in a repeating group?

**URL:** <https://forum.bubble.io/t/how-to-sort-date-ranges-in-a-repeating-group/229493>\
**Category:** Need help\
**Created:** [October 23, 2022, 5:49am UTC](https://forum.bubble.io/t/how-to-sort-date-ranges-in-a-repeating-group/229493 "2022-10-23T05:49:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramzizi](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ramzizi/32/176232_2.png) [@ramzizi](https://forum.bubble.io/u/ramzizi)\
**Post date:** [October 23, 2022, 5:49am UTC](https://forum.bubble.io/t/how-to-sort-date-ranges-in-a-repeating-group/229493/1 "2022-10-23T05:49:03Z")

</div>

I have a repeating group which returns dates, the data source is in date ranges but there isn’t an option to sort by date so the group ends up out of order. Any ideas?

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/4/7/47caefce93af92aa1ae5b49e97ef7605c97e42e7.png)

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/0/9/091dfb78ee607cdcb1d76522ecd6ac8265272f9e.png)

![image](https://us1.discourse-cdn.com/bubble/original/3X/5/7/5711016e58fecb1c09798e13e9528fb5717843f9.png)

---

<div class="post-metadata">

**Author:** ![brandon8](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/brandon8/32/128707_2.png) [@brandon8](https://forum.bubble.io/u/brandon8)\
**Post date:** [October 23, 2022, 6:01am UTC](https://forum.bubble.io/t/how-to-sort-date-ranges-in-a-repeating-group/229493/2 "2022-10-23T06:01:24Z")

</div>

You should be able to click on the “Parent group’s Schedules” part of that input on the "Data Source and a new box will pop up giving you control over what data you want to display and how you want to display it. See this example:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/f/d/fde212a548276a550ca5f3a6f9e75a2fcfdea3ec.png)

---

<div class="post-metadata">

**Author:** ![ramzizi](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ramzizi/32/176232_2.png) [@ramzizi](https://forum.bubble.io/u/ramzizi)\
**Post date:** [October 23, 2022, 6:18am UTC](https://forum.bubble.io/t/how-to-sort-date-ranges-in-a-repeating-group/229493/3 "2022-10-23T06:18:20Z")

</div>

I initially didn’t even have that pop up so I had to change the repeating group to “do a search for”. But sorting the date range still isn’t an option

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/5/9/59e093ed9fd4d182304f071011e99c0b9e37be34.png)

---

<div class="post-metadata">

**Author:** ![keith](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/keith/32/56020_2.png) [@keith](https://forum.bubble.io/u/keith)\
**Post date:** [October 23, 2022, 6:42am UTC](https://forum.bubble.io/t/how-to-sort-date-ranges-in-a-repeating-group/229493/4 "2022-10-23T06:42:34Z")

</div>

You can’t, in vanilla Bubble, sort date ranges.

---

<div class="post-metadata">

**Author:** ![brandon8](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/brandon8/32/128707_2.png) [@brandon8](https://forum.bubble.io/u/brandon8)\
**Post date:** [October 23, 2022, 7:39am UTC](https://forum.bubble.io/t/how-to-sort-date-ranges-in-a-repeating-group/229493/5 "2022-10-23T07:39:59Z")

</div>

Yeah so what you’ll need to do is create your own custom “Date” field (or whatever you want to call it) as part of your Schedule data type and use that as your sorting field.

---

<div class="post-metadata">

**Author:** ![keith](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/keith/32/56020_2.png) [@keith](https://forum.bubble.io/u/keith)\
**Post date:** [October 23, 2022, 5:07pm UTC](https://forum.bubble.io/t/how-to-sort-date-ranges-in-a-repeating-group/229493/6 "2022-10-23T17:07:15Z")

</div>

Though, I think I meant to mention that this can be done with List Shifter’s SORT action.

---

<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:** [January 1, 2023, 5:49am UTC](https://forum.bubble.io/t/how-to-sort-date-ranges-in-a-repeating-group/229493/7 "2023-01-01T05:49:07Z")

</div>

Closed on January 1, 2023, 5:49am UTC

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