fix sorting by unanswered questions on pg