Merge branch 'fix-sorting' of cmccabe/linkulator2 into master

This commit is contained in:
cmccabe 2019-12-16 06:52:07 -05:00 committed by Gitea
commit 6e01094248
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))