Navigate to Products->Catalog in Magento admin.
Find the product, for which you want to update dropdown positions, enable its editing and click Edit Configurations button in Product Details tab to open configuration wizard.
Move to Attribute Values step, consolidating attributes and their values, drag-and-drop attributes to rearrange them as you need.
After words I get this error
Unique constraint violation found. Image below