diff --git a/uc_product/uc_product.module b/uc_product/uc_product.module index 53a11dc..91c5d33 100644 --- a/uc_product/uc_product.module +++ b/uc_product/uc_product.module @@ -1703,7 +1703,7 @@ function uc_product_get_models($nid, $add_blank = TRUE) { // Get any modules' SKUs on this node. $models = module_invoke_all('uc_product_models', $nid); // Add the base SKU of the node. - $models[] = db_result(db_query("SELECT model FROM {uc_products} WHERE nid = %d", $nid)); + $models[] = db_result(db_query("SELECT model FROM {uc_products} WHERE nid = %d ORDER BY vid DESC", $nid)); // Now we map the SKUs to the keys, for form handling, etc. $models = drupal_map_assoc($models);