Stable-sort function prototypes and header includes

What do you want to achieve?

Closely related to Stable component IDs, it would help me if SquareLine export stable-sorted function prototypes and header includes to reduce merge conflicts when updating our device firmware codebase from our UI engineer.

Do you see alternative options and workaround to achieve it?

Not practically, no.

Mention some use cases

Checking in changes from SquareLine studio on a branch, then merging that branch.

Example of undesired headers and prototype order shuffling


AFAIK the header/prototype export order is not alphabetical at the moment but what the project-data (the order in which objects are added) dictates. But nevertheless it’s a good idea to get them sorted and make git-diffs even smaller, thanks for pointing it out.

1 Like