sort functions alphabetically also in raw
This commit is contained in:
parent
be2371e0f5
commit
d47627643f
1 changed files with 2 additions and 2 deletions
|
|
@ -267,7 +267,7 @@ def get_functions(elem):
|
|||
for child in elem.children:
|
||||
if child.name == "h3":
|
||||
if current_body != []:
|
||||
out.append((current_heading, current_body))
|
||||
out.append((current_heading, sorted(current_body)))
|
||||
current_heading = child.text.strip()
|
||||
current_body = []
|
||||
continue
|
||||
|
|
@ -278,7 +278,7 @@ def get_functions(elem):
|
|||
for grandchild in child.children
|
||||
if grandchild.text.strip() != ""
|
||||
)
|
||||
out.append((current_heading, current_body))
|
||||
out.append((current_heading, sorted(current_body)))
|
||||
return out
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue