I put this in place for myself because it was driving me crazy trying to get the product options displayed in the order I wanted. All the sorting contributions I came across were difficult to implement or changed a lot of code.
All I wanted was something that showed my options in order of price. Or at the very least showed them in the order I entered them.
It's a simple fix that takes less than a minute.
What it does...
First - sorts by price
Second - if price is same (or 0), it sorts based on the order that the option was entered.
Sorting Attributes Contribution