I'm implementing a basic forum app. I would like to sort the questions by their last reply time. I have the following line:
questions = Question.objects.filter(deleted=False).order_by("last_comment__created_at")
However, this query ignores the new questions with no answers. What would be the best way to fix this without creating a new field at Question model?