title: Angular Firestore Collection Query & Order By
body: <p>I am performign a simple query and then want to order by date.</p>
  
  <p>This works perfectly fine:</p>
  
  <pre><code>this.afs.collection('orders', ref=&gt; ref.where('orderStatus', '&lt;', 7));
  </code></pre>
  
  <p>This throws an error when I want to filter orderStaus &lt; 7 and then order it by date.</p>
  
  <pre><code>this.afs.collection('orders', ref=&gt; ref.where('orderStatus', '&lt;', 7).orderBy('date', 'desc'));
  </code></pre>
  
  <p>Here is my error:</p>
  
  <pre><code>You have a where filter with an inequality (&lt;, &lt;=, &gt;, or &gt;=) on field 'orderStatus' and so you must also use 'orderStatus' as your first Query.orderBy(), but your first Query.orderBy() is on field 'date' instead.
  </code></pre>
  
  <p>How can I achieve getting all ordersStatus &lt; 7 AND then sort the orders by date?</p>