As you can see in the image, I have a voting system where users can vote for academic institutions. I am displaying the top 3 academic institutions (the ones with more votes) in a repeating group, sorted by vote count, descending.
However, if the institution that the user selects on the dropdown is not in the top 3, I want it to be displayed below the repeating group, including what would be its index number according to its vote count.
I also need to assign the same index number to the items in the repeating group that have the same vote count. So EAFIT and University Z should both have index number “2” since they are tied in the second place.
You can see the image for more detail.
Any ideas of how can I do this? Thanks in advance.