AFAIK there’s no way to order/reorder attributes other than by the way they sort by name.
In situations where order in the Options dialog is important, I setup the aesthetics of the Options dialog first.
A simple letter prefix for each custom attribute establishes their order.
A_name
B_name
C_name
Establishing attribute order ahead of time doesn’t fix the bug, but it does help avoid it.