title: how to sort date in cloudant query
body: <p>i want to sort my data as par desc date in local cloudant query.
  i have insert_ts in my database document.
  my code for simple query is:- </p>
  
  <pre><code>  public List&lt;BasicDocumentMAP&gt; allTasksWithAllArg(Map&lt;String, Object&gt; query, int skip, int limit, List&lt;String&gt; fields, List&lt;Map&lt;String, String&gt;&gt; sortDocument) {
      int nDocs = this.sunDatastore.getDocumentCount();
      QueryResult all = this.im.find(query, skip, limit, fields, sortDocument);
      List&lt;BasicDocumentMAP&gt; arrayListBasicDocumentMAP = new ArrayList&lt;&gt;();
  
      // Filter all documents down to those of type Task.
      for (DocumentRevision rev : all) {
  
      }}
  </code></pre>
  
  <p>please help me to sort data as date wise. thank you</p>