implementing a popularity algorithm in django,Link.objects.all().order_by('-popularity')