# How do I rank a repeatingGroup of progress bars?

**URL:** <https://forum.bubble.io/t/how-do-i-rank-a-repeatinggroup-of-progress-bars/15129>\
**Category:** Need help\
**Created:** [July 2, 2017, 9:57pm UTC](https://forum.bubble.io/t/how-do-i-rank-a-repeatinggroup-of-progress-bars/15129 "2017-07-02T21:57:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rico.trevisan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/rico.trevisan/32/170176_2.png) [@rico.trevisan](https://forum.bubble.io/u/rico.trevisan)\
**Post date:** [July 2, 2017, 9:57pm UTC](https://forum.bubble.io/t/how-do-i-rank-a-repeatinggroup-of-progress-bars/15129/1 "2017-07-02T21:57:54Z")

</div>

First time programmer here. Doing things with Bubble that I thought impossible for me - a mere non-programmer mortal - to do. Thanks to the Bubble team and Brent @ [codefree.co](http://codefree.co) 👍

I am getting stuck trying to solve the following problem: I want to display a list of progress bars of various fiberhoods. And I would like to rank them from highest to lowest (aka: closest to 100%; less close to 100%).

Here is what it looks like right now:

 ![](https://us1.discourse-cdn.com/bubble/original/2X/5/5bfd331fe92e5a61ca57cded6c24b8f2a9df21cf.png)

I’m starting from 2 Things:

- Users
- Fiberhoods

I currently calculate the percentage like this:  
(number of Users that are in that CurrentCell’s Fiberhood) ÷ (Fiberhood’s NMI’s value) \* 100

That works; the progress bars display the correct amount.

What I am having a hard time is to rank that list by the product of that list. How should I go about that?

I am guessing that I should go into the RepeatingGroup and in “Data Source” I should create a dynamic rule similar to what I do to create that progress bar. But is it good practice? Am I doing a wasteful calculation? If that’s the answer, how should I even do it?

Or

Should I somehow calculate those percentages upfront, add them to the Fiberhood Thing, and then indeed sort in “Data Source”. If that’s the path, how can I do this background calculation? Do I have to create a new page and put these workflows in them? How do I get them to run?

> **[Bubble Editor - rico.wtf](https://bubble.io/page?type=page&name=fiberhood&id=gigafy&tab=tabs-1)**
>
> Build stuff without code and launch a startup without a tech-cofounder! Bubble is a visual programing language. Instead of typing code, use a visual editor to build applications.

---

<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:** [September 10, 2017, 9:58pm UTC](https://forum.bubble.io/t/how-do-i-rank-a-repeatinggroup-of-progress-bars/15129/2 "2017-09-10T21:58:01Z")

</div>

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