I am storing data in Firebase storage.
Object Comment with attribute timestamp. When I push data from device to Firebase I\'m populating
If you are doing it on web then you can push values in an array and then print the stored values in reverse order.
var a=[]; //declaring an array a.
var num=snapshot.numChildren(); //storing number of children in var num.
a.push(snapshot.val()); // pushing data in the array.
if (a.length==num){ //checking if length of array is same as number of children.
a.reverse(); //reversing the array elements.
for(i=0; i