code: function sortComments(comments) {
      comments.sort(comp);
      $.each(comments, function() {
        this.children = sortComments(this.children);
      });
      return comments;
    }
docs: Recursively sort a tree of comments using the comp comparator.