forked from cmccabe/linkulator2
Merge branch 'fix-sorting' of cmccabe/linkulator2 into master
This commit is contained in:
commit
6e01094248
|
@ -90,7 +90,7 @@ def print_thread_details(post_id) -> tuple:
|
|||
raise ValueError("Sorry, no thread found with that ID.")
|
||||
|
||||
# get replies data
|
||||
replies = sorted([line for line in link_data if line[3] == parent_id])
|
||||
replies = sorted([line for line in link_data if line[3] == parent_id], key=lambda x: x[2])
|
||||
|
||||
# post detail view
|
||||
print("\n\n{:<17}: {}".format(style_text("Title", "bold"), post_title))
|
||||
|
|
Loading…
Reference in New Issue
Block a user