I have three columns in a table: id, streetname, count. To some ids is more than one streetname assinged. Count tells how often the respective street is assigned to the id.
I don't think it's the right way to have not unique column name 'id' but your problem should've been solved by this query:
SELECT id, streetname FROM table ORDER BY count DESC