humanmade/comment-popularity — pull request #52 by pdewouters (2014-08-22 19:20:06+00:00)
Title: Refactor get_comments_sorted_by_weight

Instead of passing a comments object, we can pass the post ID and run a WP_Comment_Query.
Then we can use this in the widget class. It will be easier to test.