In my iOS app, I send message information to the Firebase Database using childByAutoId for the key for each message. Currently the keys are ordered with oldest messages at the top of the node.
How can I configure the database via its rules so that the newest messages are at the top of the messages node?
I want it to be structured this way so that when I make my first call to firebase to fetch the latest batch of message in viewDidLoad() I can populate my table as soon as possible