title: Unable to sort the elastic search data in using nodejs
body: <p>I am getting the data from the elastic search but on using the sort query on the elastic data it is not sorting instead it is returning the data in the sort bucket.</p>
  
  <pre><code>sort: [
          {
            'statistics.viewCount.keyword': {
              order: 'desc'
            }
          }
        ]
  </code></pre>
  
  <p>the output I was expecting the sort the viewCount but Instead got the without sorting of the view count</p>