At the moment I have this:
$allProducts = $_product->getTypeInstance(true)->getUsedProducts(null, $_product);
which seems to be pulling the Simple Products in order of Product ID. I initially tried swapping this code out for:
$conf=Mage::getModel('catalog/product_type_configurable')->setProduct($_product); $allProducts = $conf->getUsedProductCollection() ->addAttributeToSelect('*') ->addFilterByRequiredOptions() ->setOrder('size', 'ASC');
(Size being the only configurable attribute relevant.) But I quickly realised that because this was actually sorting the string value (so numbers came up in the order 120,160,1080,20 which is no good). What I'd like to do is get this ordered by the attribute label's 'position' within that attribute. I've tried changing the 'setOrder' parameter to "position" and "order" without any joy.
Any help would be appreciated :)