This question has already been answered:
I make a request to the database for the selection of goods by id , and id follow in a certain order. For example, part of the query FROM oc_product p WHERE p.product_id IN ('574','572','573') . In response, I get a sorted array. I need to get an array with the same id order as in the request. Processing the php array has already implemented. I wonder whether it is possible to preserve the order of the id sql query