Well if you are using firestore, you get the data in ascending order or descending order through the database based off of whatever field in the documents. You would just load the users on the leader board given that order from firestore.
Thank you ! I appreciate it!