title: How to sort Tumblr posts by tag without changing page?
body: <p>I tried this code:</p>
  
  <pre><code>{block:Posts}
  &lt;ul&gt;
  {block:HasTags}
  {block:Tags}
  &lt;a href="{TagURL}"&gt;&lt;li&gt;{Tag}&lt;/li&gt;&lt;/a&gt;
  {/block:Tags}
  {/block:HasTags}
  &lt;/ul&gt;
  {/block:Posts}
  </code></pre>
  
  <p>However when you click one it takes you to another page. How can I make this sort them without going to another page?</p>
  
  <p>Example of the sorting I want to achieve: <a href="http://purifytheme.tumblr.com/" rel="nofollow">http://purifytheme.tumblr.com/</a></p>