Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
New comment sorting algorithm #1022
Currently, comments are being sorted by New as a default. This entails that good discussions started early on in the proposal gets burried down, potentially not being seen by new coming users. It was stated by @behindtext in riot that top comments would be best being sorted from old to new when going from top to bottom.
Reddit also implements a new sorting algo that aimed to increas "fairness" in the comment's sorting by blending comment votes and age, that could also improve how pgui sort comments. Initially, a quick improvement to the current status would be to make sorting from Top the default.
Quoting @RichardRed0x about the new reddit algo:
Blog post about the new reddit sorting algo: reddit link
Here is a link to the discussion in riot: riot link
To follow up on that discussion, I think switching to "Top" sorting method as the default would be a quick and easy move that improves the ordering of comments on politeia. Reddit used this as its default for some time, then developed the "Best" sort because of an issue whereby early comments would become locked in to the high-visibility spaces (appearing at the top of the list means the comment gets more votes so is more likely to remain at the top and get more votes, a feedback loop).
From what I have seen on politeia so far, I think Top could work quite well. People seem to be reading and voting fairly deep into the page. While I do think the kind of sorting reddit uses for "Best" is good and would be worth implementing, we may not be at a scale where it is really needed yet.
Also, reddit's Best algorithm relies on the upvote/downvote ratio for a comment as the basis for its ranking. So far Politeia has a much lowe rate of downvoting than reddit does, which could make this algorithm less useful.
Regarding the improvements we can implement while working on the "Best" alg I think we can do is:
On the personal default thing I thought about two ways of achieving it:
Agreed to change default to Top, this has a chance to give us cheap and instant win. And if not, we will hopefully get some feedback.
All persistence stuff should go in a separate commit(s).
This can be annoying, e.g. if I want to change sort temporarily but use my pref again on next page load.
I suggest explicit UX: