Up to date ? Sorted a RG by a field's field?

Hello eveyrone,

This have been talked A LOT on Bubble forum.

We could not sort a repeating group with an option set or a field’s field grom another table.
Only sort with a field number, text, date…

Is it still relevant?

Below one of the message on the Bubble forum :

Thank you

Add a number field to your option set. When sorting just use option set’s number descending “yes/no” instead of option set’s display

This will work

2 Likes

Nothing has changed in Bubble since that post, so the advice there still holds true.

It’s still not possible to sort data on related field values, so there are only 2 ways to do this.

  1. Load ALL the data to the page then sort it using some custom Javascript or a plugin (fine for small amounts of data, but no good if your database is large).
  2. Add a number field to the DB just for sorting (as annoying as it is… this is the correct way to do this in Bubble in most cases).
1 Like

Hello,

Thank you.
I am sorry, I did not precise, it was an option set in text

But I did it and I created a field Text
and then a data trigger to change the option set’s display.

Thank you :slight_smile: