Deciding and implementing a trending algorithm in Django,Book.objects.annotate(reader_count=Count('readers')).order_by('-reader_count')