I have this loop through children:
public void onDataChange(DataSnapshot snapshot) {
for (DataSnapshot postSnapshot: snapshot.getChildren()) {
przejazd = postSnapshot.getValue(Przejazd.class);
System.out.println(przejazd.getAdres_koniec());
przejazdList.add(przejazd);
mAdapter.notifyDataSetChanged();
}
}
But I want to loop from last child to first child, how to do it?