.Comments. WSZYSTKIE ZAMÓWIENIE DJANGO
from django.db.models import Count
posts = Post.objects.annotate(num_comments=Count('comment')).order_by('-num_comments')
Repulsive Reindeer