title: How to sort with elasticsearch?
body: <p>I am trying to make methods for sorting <code>desc</code> and <code>asc</code>. I am using rails, tire gem and elasticsearch. I am trying to figure out what sort params I can send in the URL</p>
  
  <p>So I have defined in the search-block that it is sorting the result desc order.</p>
  
  <pre><code>sort { by :price, "desc"}
  </code></pre>
  
  <p>When a user search for apartments in: <strong>new-york</strong> the result is sort desc order.</p>
  
  <p>The search query/URL looks like this:</p>
  
  <pre><code>http://localhost:3000/apartmens?utf8&amp;query=newyork
  </code></pre>
  
  <p>Why cant I add a sort-params in the url, like this:</p>
  
  <pre><code>http://localhost:3000/apartmens?utf8&amp;query=newyork&amp;sort=asc
  </code></pre>