TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How does HN sort/rank the comments thread?

2 pointsby cheeaunabout 11 years ago

2 comments

gus_massaabout 11 years ago
Comment of pg, 1362 days ago: <a href="https://news.ycombinator.com/item?id=1398250#up_1398764" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=1398250#up_1398764</a><p>&gt; <i>I did recently (about 3 weeks ago) tweak the algorithm for ranking comments, and that has had a noticeable effect. Previously it was the same as the one for ranking frontpage stories. Now it also considers among other things the average comment score of the submitter. With any luck this will keep HN poised in its usual position mid-way over the shark for another 6 months.</i><p>AFAIK the exact weights are part of the secret sauce, and the current algorithm may have a few modifications and can change without previous notice.
ColinWrightabout 11 years ago
My understanding is that it&#x27;s the same as for the threads. There&#x27;s a &quot;score&quot; which is effectively points divided by some power of the age, with a penalty applied for flags. Then they are sorted by that score.<p>A version of the source is available - it will be pretty similar.<p>Why do you ask?