I have posts for a group chat stored in an array. I'm trying to get the newest posts to be shown at the top and the oldest at the bottom. I'm not sure what to do or how I could maybe get new posts to be [0] in the array.
Below is the Firestore schema.