How do you make a leaderboard from Firebase?

How do I make a leaderboard using Firebase?

you will need to use plugin for firebase, then either use realtime database or firestore to store and read it