I have a database whose columns are npID, title, URL, and issue.
Here is an example of two years\' entries:
npID title UR
Yes, you can use if/then constructions anywhere in a sql command.
Do you already have a substring-pattern that works for you? if so, you can use something like:
ORDER BY (IF (SUBSTRING(first_match_of_issue) IS NOT NULL) THEN first_match_of_issue ELSE second_match_of_issue))
However - if you already know what they're going to be, then the CASE statements mentioned in other answers are probably easier.