As we have the scores of all items in a thread, we can create a sorting function that uses a compound score based on all the items in a thread.
The discussion in this lobste.rs thread has more ideas.