title: How to i fix a firestore error complaining about order by on equality filter
body: <p>This works</p>
  
  <pre><code>collection
      .where('startDate', '&gt;=', startDate)
      .get();
  </code></pre>
  
  <p>This will cause an error</p>
  
  <pre><code>collection
      .where('startDate', '&gt;=', startDate)
      .where('startDate', '&lt;=', endDate)
      .get();
  </code></pre>
  
  <p>The error 
  <code>Error: order by clause cannot contain a field with an equality filter startDate</code></p>
  
  <p>I don't understand the error or how to fix it. My data type in firestore is a date. The documentation allows for range queries as long as its the same field so I'm not sure why this isn't working.</p>