How do I stop Bubble from automatically reordering elements after merging with another branch or deploying to live?

So I have a list of dropdown fields and their labels added together inside a group.
(Approximately 30 dropdowns and labels.)

However, when I merge the branch into the Main branch or deploy it to live, their order changes from how I ordered them (how they make sense to the user).

Here are screenshots of the issue:

Correct order…

Wrong order after merge…

Please do you have an idea of how I can resolve this?

Thanks

Add sorting to your fields.

They are not sorted “technically” so it’ll be random each time.

Either by creation/modified date or a custom “sort” value.

Hi @GH5T ,

Please kindly remember these are elements I added to the page ine after the other. How do I add sorting to them?

Also, if indeed sorting can be added to the dropdown fields, how about the label above each one?

Also, please note these display as intended in the branch where I created them.

They only get out of order when I merge with another branch.

Thanks.

Your repeating group that is housing the data.

Source.

Make it so that the data source is “sorted/filtered” the way you want.

You’ll need to add another value called “sort” to the “thing-type” and then add the sorts for each item.

Item 1:

  • sort: 1

Item 3

  • sort: 2

Item 2

  • sort: 3

This way when you filter it or “sort”, you can use these as your primary sorting value and then the fields will not go out of order when you merge.

There is no repeating group.

It’s just dropdown field elements added on a page.

My answer is: sort them.

Otherwise, anything you have on lists can be reordered.

Please how do I sort them?

They are just input fields directly added to the page?

I’ve never had this issue before with merging, so my solution may not work as expected.

Have you tried like an empty page with just a list of items, and merge that way to see if the issue happens on all parts of your application?

If so, that actually makes me question the logic of their merges. I would be able to provide a suggestion, but it would be hacky. Let’s try to see if merge is the direct issue.