Fixed wrong order of "UNION" and "ORDER BY"