Sort list of available blocks in structured text [And a bug: Structured Text not properly saving block order]

Inserting a block in structured text lists blocks in a random order.

This is poor UX and doesn’t match how blocks are listed in a modular block field (which is alphabetically, which is helpful):

I am reclassifying this as a bug, too…

Normally you should be able to explicitly define the block ordering in the structured text field validations:

That order SHOULD be what your users see.

However, there is currently a bug that seems to be preventing the proper saving of that order — it gets reshuffled into utter chaos for some reason. And plus, I think you have a point that just making it alphabetical (optionally) would help.

I’ll bring both both up for the devs.

PS Sorry for the delay in responses here; we had a few abnormally busy days on the support team.

@convincible This should be fixed now, and the “Add block” menu should now respect your manually defined order (set up in the field schema).

If you don’t see it yet, please:

  1. Edit the field schema to drag one of the fields to a different position and save it
  2. Drag it back (to where it was originally) and save it again

Now the insertion order should be saved serverside and take effect when an editor next tries to add a block again.

You guys are awesome!