Sort cited-to results

This commit is contained in:
Tim Van Baak 2018-08-09 09:35:57 -07:00
parent 985f5be19f
commit 5100ecc634
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ def build_statistics_page(articles, config):
cited_count = defaultdict(list)
for title, count in cited_tally: cited_count[count].append(title)
content += "<br>\n".join(map(
lambda kv: "{0} &ndash; {1}".format(kv[0], "; ".join(kv[1])),
lambda kv: "{0} &ndash; {1}".format(kv[0], "; ".join(sorted(kv[1]))),
sorted(cited_count.items(), reverse=True)[:3]))
content += "</p>\n"
content += "</div>\n"