I'm using mySQL. I have to order names of Contacts by Lastname but in the case that there is no last name, I order by firstname.
This looks like:
ORDER BY lastname = "", lastname, firstname
However, this makes the ones with lastnames appear at the top. The behaviour I'd like is to intermix the first and lastnames like they were from the same field.
Example (pretend these are names):
A,T
Z,G
A
B
C
Versus:
A
A,T
B
C
Z,G
Thanks