Unfortunately firebase doesn't allow returning by descending order. I have generally just reversed the order of the results returned client side.
If your data query is too large to sort client side you can do
firebase.database().ref('books').orderByChild('ups').limitToLast(2)
and then invert the results from there. Documentation can be seen here