Ask HN/PG: Information on the algorithm behind story/comment ordering on HN?
I'm currently creating several community oriented websites and it's become obvious to me that one of the biggest challenges is making sure that new content gets noticed while reinforcing the importance of good content by rewarding good comments/stories with better placement.
To this end I am currently using a sort order based on an interpolation of rating and age. However, there is clearly a lot of room for improvement in my algorithm.
Before working to come up with something better from scratch I thought I would try to get some more info on the best algorithm I know of, the one used by Hacker News!
My current algorithm (in SQL) is fairly crude but seems to be working to an extent:
( rating - ((UNIX_TIMESTAMP(UTC_TIMESTAMP()) - UNIX_TIMESTAMP(created_at)) / 43200 ) ) DESC
Suggestions for improvement welcomed...