 Hey guys, it's MJ the student's act tree and in this video I want to share a way that I was able to descend an order in Firebase, so this is what I've got with my my little app building this in Ionic I want to order my celebrities by this score over here So if Ed Sheeran gets one you see he overtakes Kendrick Lamar if we give him a few more We see he overtakes Lady Gaga and there he's overtaking Big Sean now What I wanted to do was I wanted to order this in my fire base and so I was using this code over here Where I was having my celebrity database and I was ordering it by something called hypes Because that's what this app does you get hypes and you hype up celebrities cool So I was ordering it by hypes, but when I ordered it by hypes Actually, I think can I show you guys quickly what happens if you order it by? by hypes Click save and then it comes here. What it will do. I think Kanye West will now go right to the bottom So that's this whole little build again Okay, so here you can see Kanye West is at the bottom as soon as we start giving Ed Sheeran a lot You can see he starts going towards the bottom So what I did in order to get around this I went and I created a new thing in my database I Created something called order so before I just had hypes and the celebrities name in order to make it Order it from the highest amount of hypes towards the lowest amount of hypes I created this thing called order and I gave each one a very large number. They were all the exact same large number I think I don't know how many zeros they were I think it was like a hundred million or something like that and then what I did in my code was That I'll show you my code over here is when you now send hypes or you send a lot of hypes You're going to be increasing the hype number, which is what we're seeing visually But what we're also going to be doing is decreasing the order which the user isn't seeing So the hypes are going to increase and the orders are going to decrease We're going to visually show the hypes, but we're going to make our code order on this thing called order Now I've only been using Firebase for probably one week So if you guys have a better solution for me or if you think that what I've done here is going to make me write into big troubles Later on please let me know in the comment section below It will be terrible if we get to a stage where this bugs up the whole program But it is a quick little fix that I've come up with To just make it more so that you have the people with the most types are at the top and people with the least amount of Hubs are at the bottom. But like I said, if you've got a better solution, please Share it in the comment section for for everyone to see. Thanks so much for watching and yeah, cheers