title: I don't want MySQL to sort the results found
body: <p>Currently, I'm retrieving some data from a MySQL database table, but the problem is every time the query executed, by default MySQL sort the result according to automatic-generated-id which is field name [id]. I don't want to be sorted. In my case:</p>
  
  <pre><code>$keys = array(4, 1, 7, 8, 2, 5, 6);
  $strKeys = implode(',', $keys);
  $result = mysql_query('SELECT * FROM tableName WHERE id in('.$strKeys.')');
  </code></pre>
  
  <p>I want the result in order from what the $keys looks like: 4, 1, 7, 8, 2, 5, 6
  BUT indeed, the result comes out in sorted order by [id]: 1, 2, 4, 5, 6, 7, 8</p>
  
  <p>How to get the result and display as in order from the $keys. </p>