Currently the options are ordered by the options ID, but you can change the order by changing the ORDER BY in the query.
Look for this line of code:
ORDER BY options.OptionID in your Products_Detail.php page and you can change that to order by name by changing to:
ORDER BY options.OptionName