title: ElasticSearch sort order for multiple fields
body: <p>What is the best way to specify the <a href="http://www.elastic.co/guide/en/elasticsearch/guide/current/_sorting.html" rel="noreferrer">sort order in ElasticSearch</a> for multiple fields? The query string format does not seem to work at all:</p>
  
  <pre><code>http://elasticsearch_url/index/_search?sort=field1:asc&amp;sort=field2:desc&amp;size=100
  </code></pre>
  
  <p>One would like to sort first by field1, then by field2, but only one of the fields seems to be sorted correctly. The full notations works better, but the first entries have occasionally the wrong search order:</p>
  
  <pre><code>curl -s -XGET http://elasticsearch_url/index/_search -d '
  {
      "sort": [
          { "field1": { "order": "desc" }},
          { "field2": { "order": "desc" }}
      ],
      "size": 100
  }'
  </code></pre>