How can I programatically set the categories AND the sort order/position of products? I already have an exisiting script that iterates through my products and assigns the categories
$product = Mage::getModel('catalog/product');
However, this set's the sort order/position for all products to "1". I also have found this posting
How to update product position (number) in specific category programmatically
but I'd like to avoid loading every single category and do something like
Is there a way that does not require loading every single category?
PS: I want to assign the same position in every category.