'Filter out the comments we don\'t want to show in QA sort.
QA sort only displays comments that are:
1. Top-level
2. Responses from the OP(s)
3. Within one level of an OP reply
4. Distinguished
All ancestors of comments meeting the above rules will also be shown.
This ensures the question responded to by OP is shown.'

def _get_comment_order(self):

    comment_tuples = CommentOrdererBase.get_comment_order(self)
    if (not comment_tuples):
        return comment_tuples
    elif isinstance(comment_tuples[(-1)], MissingChildrenTuple):
        missing_children_tuple = comment_tuples.pop()
    else:
        missing_children_tuple = None
    special_responder_ids = self.link.responder_ids
    comment_ids = {ct.comment_id for ct in comment_tuples}
    comments_by_id = Comment._byID(comment_ids, data=True)
    kept_comment_ids = set()
    for comment_tuple in comment_tuples:
        if (comment_tuple.depth == 0):
            kept_comment_ids.add(comment_tuple.comment_id)
            continue
        comment = comments_by_id[comment_tuple.comment_id]
        parent = (comments_by_id[comment.parent_id] if comment.parent_id else None)
        if (comment.author_id in special_responder_ids):
            kept_comment_ids.add(comment_tuple.comment_id)
            continue
        if (parent and (parent.author_id in special_responder_ids)):
            kept_comment_ids.add(comment_tuple.comment_id)
            continue
        if (hasattr(comment, 'distinguished') and (comment.distinguished != 'no')):
            kept_comment_ids.add(comment_tuple.comment_id)
            continue
    for comment_id in sorted(kept_comment_ids):
        comment = comments_by_id[comment_id]
        parent_id = comment.parent_id
        counter = 0
        while (parent_id and (parent_id not in kept_comment_ids) and (counter < g.max_comment_parent_walk)):
            kept_comment_ids.add(parent_id)
            counter += 1
            comment = comments_by_id[parent_id]
            parent_id = comment.parent_id
    comment_tuples = [comment_tuple for comment_tuple in comment_tuples if (comment_tuple.comment_id in kept_comment_ids)]
    if missing_children_tuple:
        comment_tuples.append(missing_children_tuple)
    return comment_tuples
