var playersRef = firebase.database().ref(\"team_mapping/\"); playersRef.orderByChild(\"score\").limitToFirst(7).on(\"child_added\", function(data) { }
just use reverse() on the array , suppose if you are storing the values to an array items[] then do a this.items.reverse()
ref.subscribe(snapshots => { this.items = []; snapshots.forEach(snapshot => { this.items.push(snapshot); }); **this.items.reverse();** },