Ask PG: What's The Most Points One Submission Has Ever Received?
Ask PG: What's The Most Points One Submission Has Ever Recieved on Hackernews? What Was The Article?
> (with (topi nil topscore 0)
(each-loaded-item i
(when (and (astory i) (> (realscore i) topscore))
(= topi i topscore (realscore i))))
(list topi!id topscore))
(459289 521) s = Stories.objects.order_by('-num_votes')[0] ((sort (compare > score) stories*) 0)To sort an existing list, over a particular member, it would be
Stories.sort( key = lambda x: x.score )
That lambda has certainly confused a lot of people I know. Probably because they used the word "lambda" and not "function".