# Sorting based on conditional/calculation in Repeating Group

**URL:** <https://forum.bubble.io/t/sorting-based-on-conditional-calculation-in-repeating-group/167417>\
**Category:** Need help\
**Created:** [September 1, 2021, 6:16pm UTC](https://forum.bubble.io/t/sorting-based-on-conditional-calculation-in-repeating-group/167417 "2021-09-01T18:16:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![itframed](https://avatars.discourse-cdn.com/v4/letter/i/2acd7d/32.png) [@itframed](https://forum.bubble.io/u/itframed)\
**Post date:** [September 1, 2021, 6:16pm UTC](https://forum.bubble.io/t/sorting-based-on-conditional-calculation-in-repeating-group/167417/1 "2021-09-01T18:16:17Z")

</div>

Hi everyone,  
Please help me with sorting based on conditional/calculation in Repeating Group.

I tried using List Shifter Karma-Ware Plugin and RepeatingGroup Tool Plugin.  
I didnt not find similar examples.

Any help is appreciated.

---

<div class="post-metadata">

**Author:** ![cmarchan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/cmarchan/32/253062_2.png) [@cmarchan](https://forum.bubble.io/u/cmarchan)\
**Post date:** [September 2, 2021, 1:23pm UTC](https://forum.bubble.io/t/sorting-based-on-conditional-calculation-in-repeating-group/167417/2 "2021-09-02T13:23:31Z")

</div>

@itframed

Add a number field to your data type and place the result of your calc there. Sort your rg using that field.

---

<div class="post-metadata">

**Author:** ![itframed](https://avatars.discourse-cdn.com/v4/letter/i/2acd7d/32.png) [@itframed](https://forum.bubble.io/u/itframed)\
**Post date:** [September 3, 2021, 11:11am UTC](https://forum.bubble.io/t/sorting-based-on-conditional-calculation-in-repeating-group/167417/3 "2021-09-03T11:11:15Z")

</div>

hi @cmarchan thanks for your response. But I didn’t understand what you are trying to convey.  
To clarify, I am listing users (opposite gender) in the RG. I have different table for their quiz answers. I have to Sort the users based upon how many similar (common) answers they have.  
In RG, I have placed input and checkbox for the count of similar answers. I thought I could achieve this with checkbox or any field somehow. But I just ended with no result and frustration.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/c/2/c265ba46d587d77312d77b4b094fba6d1c90c828.png)

Problem, is with Sorting (Dynamic field). As soon as I put condition in Dynamic field sorting, it stops working, shows “No Record”.

---

<div class="post-metadata">

**Author:** ![cmarchan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/cmarchan/32/253062_2.png) [@cmarchan](https://forum.bubble.io/u/cmarchan)\
**Post date:** [September 3, 2021, 12:23pm UTC](https://forum.bubble.io/t/sorting-based-on-conditional-calculation-in-repeating-group/167417/4 "2021-09-03T12:23:02Z")

</div>

Wow! Searches within filters and sorting 👀

I would submit that other than what I suggested before (which is about turning a calculation into a number ….which I guess does not apply in this situation….) …. the logic placed on this operation if at all possible depending on the nr of entries in your dB is overloaded with finding things in too short a time.

---

<div class="post-metadata">

**Author:** ![itframed](https://avatars.discourse-cdn.com/v4/letter/i/2acd7d/32.png) [@itframed](https://forum.bubble.io/u/itframed)\
**Post date:** [September 3, 2021, 5:15pm UTC](https://forum.bubble.io/t/sorting-based-on-conditional-calculation-in-repeating-group/167417/5 "2021-09-03T17:15:32Z")

</div>

@cmarchan Thanks for your response.  
Actually I’m new with bubble and not finding any solution.

---

<div class="post-metadata">

**Author:** ![itframed](https://avatars.discourse-cdn.com/v4/letter/i/2acd7d/32.png) [@itframed](https://forum.bubble.io/u/itframed)\
**Post date:** [September 5, 2021, 6:19pm UTC](https://forum.bubble.io/t/sorting-based-on-conditional-calculation-in-repeating-group/167417/6 "2021-09-05T18:19:49Z")

</div>

Hi all,  
@cmarchan  
I’m still struggling, please help.  
I need to sort user based upon no. of answers matched with current user.

@romanmg are you able to look into this and help?

Thank you for your help.

---

<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:** [November 10, 2021, 6:17pm UTC](https://forum.bubble.io/t/sorting-based-on-conditional-calculation-in-repeating-group/167417/7 "2021-11-10T18:17:17Z")

</div>

Closed on November 10, 2021, 6:17pm UTC

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