I’m trying to accomplish this bit of code:
ORDER BY IF(j.groups IS NULL OR j.groups = '', IF(j.title IS NULL, i.title), j.groups)
In English: order by j.groups first if it exists, then by j.title if it eixsts, then finally by i.title. But the above isn’t working out.
Try this:
OR
OR