I\'m trying to test out Firebase to allow users to post comments using push
. I want to display the data I retrieve with the following;
fbl.child
You can add a column named orderColumn where you save time as
Long refrenceTime = "large future time";
Long currentTime = "currentTime";
Long order = refrenceTime - currentTime;
now save Long order in column named orderColumn and when you retrieve data as orderBy(orderColumn) you will get what you need.