I am using mySQL. I have to order contact names by name, but in case there is no name, I order by first name.
It looks like this:
ORDER BY lastname = "", lastname, firstname
However, this leads to the fact that with the last names appear at the top. The behavior I would like is to mix the first and last name, as if they were from the same field.
Example (imagine these are names):
A,TZ,GABC
Versus:
A A,T B C Z,G
thanks
Tyler source share