Currently I am able to sort the posts by date, but since they have been saved by timestamp, it is always displayed from the oldest to the newest, I would like to do the reverse, with the newest publications first. Here is my current code:
database.ref("Pedidos").orderByChild("data_pedido").on('child_added', function(snapshot){
How the date is being saved in the bank:
Thank you for your attention.