Gunakan FIELD() fungsi dalam ORDER BY klausa: ORDER BY FIElD(id, '1', '6', '3', ...); Lihat aksinya di sini: Demo SQL Fiddle