# Help with a dual search

**URL:** <https://forum.bubble.io/t/help-with-a-dual-search/222969>\
**Category:** Need help\
**Created:** [September 4, 2022, 3:06pm UTC](https://forum.bubble.io/t/help-with-a-dual-search/222969 "2022-09-04T15:06:21Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![mikeloc](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mikeloc/32/93001_2.png) [@mikeloc](https://forum.bubble.io/u/mikeloc)\
**Post date:** [September 7, 2022, 11:49am UTC](https://forum.bubble.io/t/help-with-a-dual-search/222969/10 "2022-09-07T11:49:09Z")

</div>

I have everything working as expected in my example now with five conditions on the repeating group, and I will walk through that example for you. Buckle up. 🙂

First, when it comes to the sorting, I would use an option set to define the options, and the set should have an attribute that can be mapped to the `voteCount`and `Created Date` fields in your `Product` data type. Here is the option set with the attribute highlighted.

 ![option-set](https://us1.discourse-cdn.com/bubble/original/3X/f/2/f29a02036fc23f2da928e3b2b781c635d4c52a00.png)

Here are the attribute settings for the _Newest_ and _Votes - Low to High_ options. Note that the field names must be spelled exactly the same (including capitalization) as they are spelled in the `Product` data type.

 ![newest](https://us1.discourse-cdn.com/bubble/original/3X/5/4/54649647e90af54f23d02cba960a16b1be9683cf.png)

 ![votes](https://us1.discourse-cdn.com/bubble/original/3X/f/9/f95109ba16264db7b9f51a7cd0242bdc2a7fedac.png)

Before we get to the repeating group’s settings, you need to enable the [experimental parentheses](http://forum.bubble.io/t/introducing-experimental-features-including-parentheses/204501) feature, if you haven’t done so already.

Now for the repeating group’s settings. The main data source (on the _Appearance_ tab) should look like this.

 ![main-data-source](https://us1.discourse-cdn.com/bubble/original/3X/b/8/b8af59159e33e7a69f62e87e5eb4ae5d7699d45e.png)

Then, there are five conditions on the repeating group, and they look like this.

 ![conditions](https://us1.discourse-cdn.com/bubble/original/3X/0/8/08228cdf2331d0bff139010d7d8f633392ed20d7.png)

The first condition’s data source looks like this.

 ![data-source1](https://us1.discourse-cdn.com/bubble/original/3X/4/d/4d19e8dec9095b0ad5bc5b7f793066dc9b9b5cb0.png)

The second condition’s data source is the same as the first, except the sort’s _Descending_ field is set to “no”.

The third condition’s data source looks like this.

 ![data-source2](https://us1.discourse-cdn.com/bubble/original/3X/9/a/9a093385d7762c605d404c44de86810be6d42231.png)

 ![data-source3](https://us1.discourse-cdn.com/bubble/original/3X/9/d/9d5a7514a1b7ee059616faeb181bd9150e39cfc6.png)

The fourth condition’s data source is the same as the third’s, except the filter has the sort settings in place.

 ![data-source4](https://us1.discourse-cdn.com/bubble/original/3X/6/9/69372aa947d0749c27da2125c6ae250a3f055688.png)

Finally, the fifth condition’s data source is the same as the fourth’s, except the sort’s _Descending_ field is set to “no”.

Anyway, that’s what I’ve got on this one, and I _really_ hope it helps. If it doesn’t, well, I won’t be responding in this thread (or [your other one](http://forum.bubble.io/t/filter-two-conditions-and-or/223151)) again. 🙂

---

_[View the full topic](https://forum.bubble.io/t/help-with-a-dual-search/222969)._
