As a workaround, you could add an attribute (of type integer) to the article class which holds the number of comments. This attribute should then be incremented by template code every time a comment is posted. Then you can use attribute sorting while fetching the articles.
Then write a patch for 3.8.1 ;-)) We will need this too for our internal portal: sort by the number of children and sort by the number of reverse related objects
I like Marc's workaround suggestion... I know this is an old post, but has anyone used his suggestion successfully? I would really appreciate it if Marc, or anyone else who knows, can explain to me how I can get the integer attribute in the parent node to be edited and updated automatically whenever a child object is added. Thanks!
You must be logged in to post messages in this topic!