I have a product collection created by Magento for the category product list.
I then pass some information about this collection to an external method that returns the entity IDs in a specific sort order.
Now I'd like to re-order the product collection according to the order of the entity IDs, which is completely random and does not follow any conceivable logic.
What would the best approach be?