Reviewed and corrected sorting of replies

This commit is contained in:
asdf 2019-12-16 19:54:24 +11:00
parent 326b889b8e
commit e3b98a0971
1 changed files with 1 additions and 1 deletions

View File

@ -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))