I am developing a PHP script that brings IDs from the database. The outcomes are sorted by two
The priority of
publishon is greater than
publishon can also be
publishon = null => sort by
Can someone assist me to sort individuals rows?
ORDER BY IFNULL(PublishOn, CreadedOn), CreatedOn