SORT By Calculated Value (In Bubble) or if not, How to Send A Calculated Value from a Repeating Group Out As JSON?

Trying desperately to be able to sort by a calculated value within Bubble.

Also trying to send a JSON for external sorting, but can’t figure out how to send a calculated value in a repeating group as a JSON to a server to sort, and send back to Bubble sorted from high to low price values.

Can sorting calculated values be done within Bubble yet?

Or the ability to send non-database saved values (calculated values on the page) out as JSON to be able to be sorted in a different server?

Can you give a full example of your use case and setting?

I’ve run into this in a few different places and it’s very annoying. Most of the time I end up feeding the calculated value back into a field in the database via a workflow if I really need to sort by that value, but this can really bog down the app speed wise. The Instant Calculator plugin can help with this if you want to try that method.

It would be nice to be able to store a custom state in an object inside a repeating group to achieve this.

1 Like

@anil has this plugin been explored?

Yes:

Similar to Expedia.com (as an example) the user inputs a departure and a destination airport, then the flight ticket prices load, and the prices then need to be sorted from highest to lowest (or lowest price to highest price) but because the prices are calculated on load based on the user inputs (departure and destination) there is no way to sort the values!

Is this come from an API?
This can be hard to achieve without storing info into DB.
lie @rmorgan say, there’s also plugins that can help

1 Like

Yes none of the prices are stored inside of the bubble database.

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