How to receive data ordered by date on firebase real-time database?
问题 I have an Android app that let the user books appointments with date & time pickers, when User books an appointment, it records the appointment date & time on the firebase real-time database as a string like this (29/01/2020 - 10:30), I want to receive all the appointments that is saved on the firebase from another activity but sorted by date (newest at top) For example it should be sorted like this: 3/1/2021 9:00 9/12/2020 10:30 8/11/2020 17:00 8/11/2020 15:30 6/10/2020 10:30 6/10/2020 10:00