Pode usar o operador FIELD
SELECT * FROM pedidos WHERE id IN (1,3,4,2) ORDER BY FIELD(id, 1, 3, 4, 2)