This question asks about specifying a sort order in MySQL.
What I'd like to do is have two levels of sort - the first would be my specified order, then the remaining, non-specified values would be sorted in the normal way.
What I tried is:
SELECT
version_id,
version_name
FROM
software_versions
ORDER BY
FIELD(version_id, 133, 41, 88),
version_name ASC
But what happens is the rows are sorted by version name, then FIELD (backwards from how the query is structured).
Is it possible to do what I am asking? The lookup table is relatively small (100 or so rows) so I'm not worried too much about the performance hit from using ORDER BY FIELD.
Do I need to rework this as a UNION?