def parse_by_sections(self, issues, pull_requests):
issues_a = []<EOL>sections_a = OrderedDict()<EOL>if not self.options.sections:<EOL><INDENT>return [sections_a, issues]<EOL><DEDENT>for key in self.options.sections:<EOL><INDENT>sections_a.update({key: []})<EOL><DEDENT>self.parse_by_sections_for_issues(issues, sections_a, issues_a)<EOL>self.parse_by_sections_for_pr(pull_requests, sections_a)<EOL>return [sections_a, issues_a]<EOL>
This method sort issues by types (bugs, features, etc. or
just closed issues) by labels.

:param list(dict) issues: List of issues in this tag section.
:param list(dict) pull_requests: List of PR's in this tag section.
:rtype: dict(list(dict)), list(dict)
:return: Issues and PR's sorted into sections.