title: Elasticsearch: sorting integer desc
body: <p>When sorting by integer field in elasticsearch (version "1.1.2") using query:</p>
  
  <pre><code>{
    "query": {
      "match_all": {}
    },
    "sort": [
      {
        "cubicCapacity": {
          "order": "asc",
          "ignore_unmapped": true
        }
      }
    ],
    "from": 0,
    "size": 150
  }
  </code></pre>
  
  <p>The result is correct and documents are sorted in natural order (1, 2, 5, 10)</p>
  
  <p>But when trying to complete same query using "desc":</p>
  
  <pre><code>{
    "query": {
      "match_all": {}
    },
    "sort": [
      {
        "cubicCapacity": {
          "order": "desc",
          "ignore_unmapped": true
        }
      }
    ],
    "from": 0,
    "size": 150
  }
  </code></pre>
  
  <p>The result is not correct and documents are sorted in some strange way, but expected to be (10, 5, 2, 1).</p>
  
  <p>So why sorting with <code>"desc"</code> could not give a correct result with a natural order?</p>
  
  <p>P.S. When sorting by asc/desc but with a string type (1, 10, 2, 5), <code>"desc"</code> however works correct (5, 2, 10, 1)</p>