SELECT * FROM table WHERE id IN (2,4,1,5,3) ORDER BY FIELD(id,2,4,1,5,3);
Källa: http://imthi.com/blog /programming/mysql-order-by-field-custom-field-sorting.php
SELECT * FROM table WHERE id IN (2,4,1,5,3) ORDER BY FIELD(id,2,4,1,5,3);
Källa: http://imthi.com/blog /programming/mysql-order-by-field-custom-field-sorting.php