title: firebase sort reverse order
body: <p><a href="https://i.stack.imgur.com/EqzBm.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EqzBm.jpg" alt="enter image description here"></a></p>
  
  <pre><code>var playersRef = firebase.database().ref("team_mapping/");
  
  
  playersRef.orderByChild("score").limitToFirst(7).on("child_added", function(data) {
  }
  </code></pre>
  
  <p>Using this query, I can sort it in ascending order. But, I wanted to sort in descending order. Can any body suggest me with some way to do this. Any help will be appreciated.</p>
  
  <p>Thanks in Advance!!</p>