I have a MySQL db-table as follows:
apt no | name
--------|--------
1 | Smith
1 | Smith
2 | Doe
3 | Brown
3 | Larsen
I need to create an alphabetical list that looks like this
Brown, Larsen
Doe
Smith, Smith
In other words, the list should be ordered by name, but names in the same apt should be kept together.
Yesterday I got some help keeping names in the same apartement together(see below: simple sorting problem?) However,I still haven't managed to produce the list in alphabetical order! Any ideas???