i thought about doing something like:
first, build a temporary table:
post_id, user_id, has_comment, status
from there, i thought about a trick:
select *, (if !has_comment then 1; if has_comment && status==‘whatever’ then 2; else 3) as rank from (table above) order rank asc