There are several interfaces where we have the option to add a new item and rearrange existing items in the same place. On the user roles page the "Add role" button is waay off to the right, and is easily overlooked. On the field UI the "Save" button both adds a new role and saves the order.
Roles:

Fields:

Let's implement the pattern from the Field UI form on the Roles page too.
Also related: https://github.com/backdrop/backdrop-issues/issues/927
Recent comments
Thanks Alejandro. That was the clues I needed.
Ubercart - Programmatically add product to cart and straight to Checkout
Have you tried uc_cart_add_item()? You need to provide the nid of the product. Then you can use backdrop_goto('cart/checkout'); to send the user to the checkout screen. uc_cart_add_item...
Ubercart - Programmatically add product to cart and straight to Checkout
No problem, let's see how it evolves. I'd be happy to provide a suggested version if i could. I will keep that in mind and try learn this hook chain hopefully very soon. I will...
File hashing uploads made through TinyMCE