# How to sort date with dropdown from oldest to newest and the opposite?

**URL:** <https://forum.bubble.io/t/how-to-sort-date-with-dropdown-from-oldest-to-newest-and-the-opposite/191226>\
**Category:** Need help\
**Created:** [February 11, 2022, 6:15pm UTC](https://forum.bubble.io/t/how-to-sort-date-with-dropdown-from-oldest-to-newest-and-the-opposite/191226 "2022-02-11T18:15:42Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![kerjakansemua.work](https://avatars.discourse-cdn.com/v4/letter/k/ebca7d/32.png) [@kerjakansemua.work](https://forum.bubble.io/u/kerjakansemua.work)\
**Post date:** [February 11, 2022, 6:15pm UTC](https://forum.bubble.io/t/how-to-sort-date-with-dropdown-from-oldest-to-newest-and-the-opposite/191226/1 "2022-02-11T18:15:42Z")

</div>

![sort date](https://us1.discourse-cdn.com/bubble/original/3X/7/3/735139a411501473c889311c692c1b65842bf95d.png)

i have a dropdown with the static choice. (like in the picture).

1. how to make them sort in repeating group?
2. should i make a data field in the database?

hope anyone can lead me. i appreciate that  
thank you for attention. bagaz

---

<div class="post-metadata">

**Author:** ![jobs](https://avatars.discourse-cdn.com/v4/letter/j/ebca7d/32.png) [@jobs](https://forum.bubble.io/u/jobs)\
**Post date:** [February 11, 2022, 7:15pm UTC](https://forum.bubble.io/t/how-to-sort-date-with-dropdown-from-oldest-to-newest-and-the-opposite/191226/2 "2022-02-11T19:15:27Z")

</div>

I like to put these conditionals in the repeating group.

In “Conditionals in the repeating group” have something like:

When dropdown sort’s value is “date (newest…)” then DATA SOURCE is “Do search for … [same search but have the sort be by date”

And then do the same thing for each “sort” option have a different DATA SOURCE for the Repeating group.

Goodluck! 😃

---

<div class="post-metadata">

**Author:** ![kerjakansemua.work](https://avatars.discourse-cdn.com/v4/letter/k/ebca7d/32.png) [@kerjakansemua.work](https://forum.bubble.io/u/kerjakansemua.work)\
**Post date:** [February 11, 2022, 7:18pm UTC](https://forum.bubble.io/t/how-to-sort-date-with-dropdown-from-oldest-to-newest-and-the-opposite/191226/3 "2022-02-11T19:18:11Z")

</div>

thanks @jobs for replying its work.  
and how about sort by vote (high to low) and the opposite, have idea?

---

<div class="post-metadata">

**Author:** ![jobs](https://avatars.discourse-cdn.com/v4/letter/j/ebca7d/32.png) [@jobs](https://forum.bubble.io/u/jobs)\
**Post date:** [February 11, 2022, 7:19pm UTC](https://forum.bubble.io/t/how-to-sort-date-with-dropdown-from-oldest-to-newest-and-the-opposite/191226/4 "2022-02-11T19:19:04Z")

</div>

same conditionals on the repeating group, but have the sort be by the vote count ascending/decending

---

<div class="post-metadata">

**Author:** ![kerjakansemua.work](https://avatars.discourse-cdn.com/v4/letter/k/ebca7d/32.png) [@kerjakansemua.work](https://forum.bubble.io/u/kerjakansemua.work)\
**Post date:** [February 11, 2022, 7:25pm UTC](https://forum.bubble.io/t/how-to-sort-date-with-dropdown-from-oldest-to-newest-and-the-opposite/191226/5 "2022-02-11T19:25:15Z")

</div>

![vote](https://us1.discourse-cdn.com/bubble/original/3X/8/c/8cea03c72c7df372b46530fdc401eee04c65edbb.png)

dont know how to fill it.

---

<div class="post-metadata">

**Author:** ![jobs](https://avatars.discourse-cdn.com/v4/letter/j/ebca7d/32.png) [@jobs](https://forum.bubble.io/u/jobs)\
**Post date:** [February 11, 2022, 7:30pm UTC](https://forum.bubble.io/t/how-to-sort-date-with-dropdown-from-oldest-to-newest-and-the-opposite/191226/6 "2022-02-11T19:30:10Z")

</div>

You got this!

For the highest to lowest vote, you’ll do  
Sort by **Vote**  
( Descending = Yes for High to low) (Descending = No for low to high)

So the newest to oldest, you’ll do  
sorty by: **date**  
(And I get mixed up with the descending for dates so test which is the correct.)

---

<div class="post-metadata">

**Author:** ![kerjakansemua.work](https://avatars.discourse-cdn.com/v4/letter/k/ebca7d/32.png) [@kerjakansemua.work](https://forum.bubble.io/u/kerjakansemua.work)\
**Post date:** [February 11, 2022, 7:35pm UTC](https://forum.bubble.io/t/how-to-sort-date-with-dropdown-from-oldest-to-newest-and-the-opposite/191226/7 "2022-02-11T19:35:26Z")

</div>

im sorry not tell you clearly,

 ![Screenshot_2](https://us1.discourse-cdn.com/bubble/original/3X/3/3/334b6db354214932559e6df960a5ff7728fbd741.png)

but the vote data field is not showing, i dont know why.

---

<div class="post-metadata">

**Author:** ![kerjakansemua.work](https://avatars.discourse-cdn.com/v4/letter/k/ebca7d/32.png) [@kerjakansemua.work](https://forum.bubble.io/u/kerjakansemua.work)\
**Post date:** [February 11, 2022, 7:37pm UTC](https://forum.bubble.io/t/how-to-sort-date-with-dropdown-from-oldest-to-newest-and-the-opposite/191226/8 "2022-02-11T19:37:32Z")

</div>

im sure to make a data field call vote in database. but it just not come out.

---

<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:** [April 22, 2022, 6:16pm UTC](https://forum.bubble.io/t/how-to-sort-date-with-dropdown-from-oldest-to-newest-and-the-opposite/191226/9 "2022-04-22T18:16:40Z")

</div>

Closed on April 22, 2022, 6:16pm UTC

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