I have a table of items that have a “Date Created” field, and I’m trying to figure out a way to order them so that items created in the past two weeks appear first, and items that were not created in the last two weeks appear after that, sorted alphabetically.
I know how to do it with multiple sql queries, but I’d prefer not to do that if possible. Is it possible to do this?
UPDATED ANSWER
LIMIT‘s use is necessary when you have to apply both asc and desc sorting within union.