title: How to sort prices based low to high and high to low?
body: <p>I'm new in PHP, I have a table with several prices in columns, I want to add a drop down to sort prices in the table only based on adult price from low to high and high to low. </p>
  
  <p>Here is my PHP Code:</p>
  
  <pre><code>&lt;?php echo $row-&gt;tour_adult_price." ".$currSign ; ?&gt;
  </code></pre>
  
  <p>and drop down:</p>
  
  <pre><code>    &lt;option value="price-asc"&gt;By Price: Lowest to Highest&lt;/option&gt;
      &lt;option value="price-desc"&gt;By Price: Highest to Lowest&lt;/option&gt;
  </code></pre>
  
  <p>what should I add that it will be sorted based on drop down menu ?</p>
  
  <p>Thanks in advance</p>