A MySQL query retrieves:
totalpoints -- name 55 -- John Doe 55 -- John Doe 55 -- John Doe 55 -- John Doe 55 -- John Doe 21 -- Jean London 21 -- Jean London 13
Very easy. use following query:
SELECT totalpoints, name FROM table_name GROUP BY name ORDER BY totalpoints DESC