Score:0

Ordering comments on a forum topic by rating provided by Rate module, whilst retaining the correct threading

no flag

I have a forum with threaded comments. Each comment has a like button provided by the Rate module (which uses the Voting API). I want to order the comments on the forum post by the rating count value. I've started looking at the hook_query_TAG_alter() hook but I'm not getting very far.

id flag
Is this helpful? https://www.hashbangcode.com/article/drupal-8-custom-ordering-comments
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.