I just check and I do not have this in the module of the last version.
Maybe you added/modified the query for sort order support?
Just remove
popt.products_options_sort_order
from the query in the options images module.
So the query should look like this at the end:
order by popt.products_options_name
Or add sort order addon or AJAX attributes manager with sort option enabled.