Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
This worked for me, wp 6.5.4. You must adjust the value after the comma, e.g. if your taxonomy were post_tag you'd literally write 'orderby' => 'taxonomy, post_tag',.
Note I had trouble getting the InnerBlocks to save their content, so I ended up showing innerBlockProps.children only if the block was unselected, and the normal <InnerBlocks /> when selected. Sure, Flexbox is broken when entering content, but as soon as the user selects another block it visually snaps back to the proper layout.
The getSaveElement() option almost works for my use case, except <InnerBlocks.Content /> is always automatically wrapped with a <div></div>. So, in the example above, the actual markup in the editor is something like <div className="carousel__track"><ul><div><li>Item 1</li><li>Item 2</li></div></ul></div>, which is invalid HTML. Note that it only adds this div in the editor: the actual saved HTML rendered on the front-end does not have a div wrapping the inner content. I've been unable to get rid of this unnecessary div.