I got this data in an array:
name | points
---------------
joe | 20
mike | 18
tim | 19
tina | 22
mike | 20
joe | 21
tim | 19
mike | 21
tim | 19
tina | 20
I want to put out the TOP 3 of points, so that there are only 3 lines and all the names behind it - of course every name only once, even if a name got the same points multiple times.
TOP 3
points | names
---------------------------
18 | mike
19 | tim
20 | joe, mike, tina
Anyone?