It looks like you need a "reverse ()" query, similar to the way "limit ()" works. Firebase cannot do this yet, but we plan to add it.
Depending on your use case, it might be quite simple for you to get around this. If, for example, you use Firebase collation to save the list so that it is displayed to the user, you can simply change the display logic to display things back (for example, before adding items instead of adding). If you request a data window from a large set of children (for example, to get the first 10 items from a long list), the sort order should not be important - your starting and ending points for the query will remain the same, except that they will be canceled.
source share