title: ordering two columns php mysql
body: <p><br></p>
  
  <p>I have a query: <br></p>
  
  <pre><code>&lt;?php
  
  $results = $dbConn-&gt;select("SELECT entryA, entryB FROM table");
  
  /**
  Displays the rows on $results (entryA, entryB)
  1      7
  8      5
  4      3
  5      8
  7      1
  3      4
  **/
  
  $results = $dbConn-&gt;select("SELECT entryA, entryB FROM table ORDER BY ?");
  /**
  The correct output must be: (entryA, entryB)
  1      7
  7      1
  8      5
  5      8
  4      3
  **/
  
  
  ?&gt;
  </code></pre>
  
  <p><br></p>
  
  <p>How can i possible to order two columns that equal/match to each other ids in a different row? <br></p>
  
  <p>Thanks in advance.</p>