title: Adding GET parameter on url with a tag
body: <p>I have a url that looks like this</p>
  
  <pre><code>mysite.com/index.php?page=home&amp;gender=female&amp;age=22
  </code></pre>
  
  <p>or</p>
  
  <pre><code>mysite.com/index.php?page=home&amp;gender=female&amp;occupation=programmer
  </code></pre>
  
  <p>How can I append a new parram <code>orderby=value</code> and <code>order=asc</code> using <code>a</code> tag like how the submit button works.</p>
  
  <p>like when I click the link Name It will add new param on the link a I can sort the data by it</p>
  
  <pre><code>&lt;a href="#"&gt;Name&lt;/a&gt; | &lt;a href="#"&gt;Age&lt;/a&gt;
  </code></pre>
  
  <p>like how wordpresshandles it</p>
  
  <pre><code>wordpress/wp-admin/users.php?orderby=login&amp;order=desc
  </code></pre>