title: Error is coming while get query in Android Studio Firestore
body: <p>While I'm using the below query in Firestore, an error is coming:</p>
  <p>Code:</p>
  <pre><code>query = database.collection(&quot;CustomerViews/Data/Post&quot;)
    .whereGreaterThanOrEqualTo(&quot;postDate&quot;, startDate)
    .whereLessThanOrEqualTo(&quot;postDate&quot;, endDate)
    .orderBy(&quot;postViews&quot;, Query.Direction.DESCENDING)
    .orderBy(&quot;postDate&quot;, Query.Direction.DESCENDING) 
  </code></pre>
  <p>Error:</p>
  <pre><code>Invalid query. You have an inequality where filter (whereLessThan(), whereGreaterThan(), etc.) on field 'postDate' 
  and so you must also have 'postDate' as your first orderBy() field, but your first orderBy() is currently on field
  'postViews' instead.
  </code></pre>