this post was submitted on 11 Jun 2023
3 points (80.0% liked)

Lemmy.ca's Main Community

2877 readers
121 users here now

Welcome to lemmy.ca's c/main!

Since everyone on lemmy.ca gets subscribed here, this is the place to chat about the goings on at lemmy.ca, support-type items, suggestions, etc.

Announcements can be found at https://lemmy.ca/c/meta

For support related to this instance, use https://lemmy.ca/c/lemmy_ca_support

founded 4 years ago
MODERATORS
 

Maybe I'm blind, but is there a setting to change the default sort method for comments? It always defaults to "hot" and I want to default to "top". It's kind of annoying to have to click "top" every single time I open a comment section.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] bionicjoey 1 points 2 years ago (1 children)

"Hot" has some time-weighting, while "Top" is strictly ordered by karma

[โ€“] Undearius 4 points 2 years ago

The beauty of open-source. We can view the code that does it. "Hot" is basically just a ratio of votes over time with some weighted factors involved.

Rank = ScaleFactor * sign(Score) * log(1 + abs(Score)) / (Time + 2)^Gravity

https://github.com/LemmyNet/lemmy/blob/ecc9469a02e63eab4e19093007c7ba6db0dca079/migrations/2019-03-30-212058_create_post_view/up.sql#LL8C2-L8C2