How to filter json data

hello everyone, I’m having a problem with the firebase storage system, because firebase uses a data filter system instead of alphabet so I’m having trouble organizing the data, if I store using an id like 10000000000000000 then it will create a problem later, I have an idea to make an id tag custom it’s just that the problem is that the order of the data on firebase doesn’t match, my question is how do I arrange the order of the data I get from firebase, do I have to use a dictonary for this or something else, because the goal is to get the data sorted, I’ve tried with using the curl method i.e. by using orderBy only that doesn’t work

What is your data type? Is it a list of strings or integers?

Show relevant screenshot of data that you want to sort.