title: Chain queryOrderedByValue() and queryOrderedByKey()
body: <p>I have the following hierarchy:</p>
  
  <p><a href="https://i.stack.imgur.com/sD3fQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sD3fQ.png" alt="enter image description here"></a></p>
  
  <p>I am using this table to generate real-time search updates for my <code>searchBar</code> and I want to make the following things:</p>
  
  <ol>
  <li><p>If a user searches for "dsa", show him the results for "dsa". (<strong>Done</strong>)</p>
  
  <pre><code>ref.queryOrderedByKey()
          .queryStarting(atValue: queryLower)
          .queryEnding(atValue: queryLower + "\u{f8ff}")
  ...
  </code></pre></li>
  <li><p>User will be able to select from which table the results to be shown so I embedded the table names as a value in order to search for them. I want, when a user selected the button <em>Search in Sports Center</em>, with a value of "dsa" to show him <strong>only the "dsa" results that have a value of "sports center".</strong> </p></li>
  </ol>
  
  <p>To make this work I was thinking:</p>
  
  <pre><code>ref.queryOrderedByKey()
              .queryStarting(atValue: queryLower)
              .queryEnding(atValue: queryLower + "\u{f8ff}")
              .queryOrderedByValue()
              .queryEqual(toValue: tableName)
  ...
  </code></pre>
  
  <p>The problem is that it crashed on <code>.queryOrderedByValue</code>. Seems like you can't chain query ordering or I don't know how.</p>
  
  <p>How can I make this work or is it a better architecture I can employ to solve my problem?</p>