I would like to set the priority of a child using the server time stamp provided by Firebase, ServerValue.TIMESTAMP
:
mFirebaseref.child(userid).setPriority(ServerValue.TIMESTAMP);
But my case is inverse. I want to set negative ServerValue.TIMESTAMP
to move my child to the top based on time. Is it possible to do that in Firebase without using the local time stamp System.CurrentTimeInMillis()
?
I would like to do something like this:
mFirebaseref.child(userid).setPriority(-ServerValue.TIMESTAMP);