Skip to content

Comment on How Hacker News ranking algorithm works

Comments

So, if you're implementing this in a framework like Django or Rails, can you get a result set in this order directly from a query? Or do you have to query then sort?

In Django, you could make the ranking score a property of the model and then do query.order_by('-score').

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.