Within Bubbleās native functions, Iām not so sure. Hereās a suggestion though; look into exporting that list with Blockspring and finding the most common item there. I havenāt fully explored Blockspring, so this may not be viable. Depending on your use case, it may or may not be practical solution.
Blockspring would certainly help you with this, since you can code anything yourself there. Natively, thatās a new sorting which we donāt support yet. Iāll put that on our list (but canāt say when weāll be able to do this though).
It is tricky. You can certainly pull out a ārankingā by counting the number occurrences (assuming they are on the database). But you canāt then either pull that out externally of the repeating group or sort on it. You can almost get their with the dynamic sort field, but it wonāt let you access the row to do the search : count to sort on it (as that would be a double pass I guess).
Other than blockspring, you could look at maybe doing a database update with your counts on page load and then pulling that back, sorted, with :firstitem.
@twr2105 Unfortunately, I havenāt solved this yet. Exploring how to send bubble database data to blockspring, calculate and display results back in bubble.
I was thinking about a delayed workflow that updated the ārankā periodically, but I donāt think that will work either as you can run it for everything I donāt think.
Does anyone know if this problem with sorting on a dynamic field which has been specially calculated for the repeating group cell has been solved? Almost seems that we need to sort the repeating group post having recieved uts source dataā¦
I was able to solve this to list the most popular Genres on my app. This also eliminates any Genres that havenāt been applied to a song yet. Hereās a screenshot of what I did: