Priority scoring algorithm [closed]

Create a post value and sort by it:

postValue = likes + (isVetted ? 10 : 0)

This makes “vetting” worth 10 likes. In other words, if 10 people like something not vetted, it will be ranked equivalently to something vetted with 0 likes.

If you want to sort by date instead, then just sort all vetted comments and all comments with greater than 10 likes by date, and sort all other comments by date below those.

Browse More Popular Posts

Leave a Comment