I want to make a nested loop for a firebase data in android studio, but the results is out of order. I know that firebase runs asynchronously but I don\'t know how to solve