What do I want?
I want to retrieve the list of objects in their insertion order from Firebase Database.
How am I adding the object
If you are having HashMap inside class and want to get whole firebase object using getValue(Classname.class)
Method bellow will help you
get it into TreeMap from HashMap and you'll have ordered list as in firebase by key
Example code
TreeMap recordingsTreeMap = new TreeMap<>();
recordingsTreeMap.putAll(project.getRecordings());
You will have ordered list by key in TreeMap object.
where project is a class having multiple fields and one or more HashMap and you don't want to query each separately.