Yes - sorry I should have been more clear. On the Product_Details.php page.
If there is only one set of options it works fine, but if there is more than one set of options and you change the sort order here from OptionName to OptionID:
$query_OptionValues = sprintf("SELECT options.OptionName,options.OptionID, productoptions.ProductID, products.ProductLive FROM options INNER JOIN productoptions ON productoptions.OptionID = options.OptionID INNER JOIN products ON products.ProductID = productoptions.ProductID WHERE OptionGroupID = ".$row_ProductOptions['OptionGroupID']." AND GroupingID = (SELECT GroupingID FROM productoptions WHERE productoptions.ProductID = ".$PIDParam_ProductOptions." LIMIT 1) ".$AddToWhere." ORDER BY OptionID", GetSQLValueString($OGIDParam_OptionValues, "int"));
The order changes to the correct order that I want, however, if I add the item to the cart, the incorrect options are added.