Are you looking for this kind of structure:
+----------------+------------------------+
|related username | their points (highest)----|
|realted username | their points (next highest)|
ETC...
If so just query, then assign to vars,
query:
SELECT * FROM league_data ORDER BY points DESC
You would then have to set up a while loop to output all the records, if you need help with that just let me know
RT