Sort cited-to results
This commit is contained in:
parent
985f5be19f
commit
5100ecc634
|
@ -179,7 +179,7 @@ def build_statistics_page(articles, config):
|
||||||
cited_count = defaultdict(list)
|
cited_count = defaultdict(list)
|
||||||
for title, count in cited_tally: cited_count[count].append(title)
|
for title, count in cited_tally: cited_count[count].append(title)
|
||||||
content += "<br>\n".join(map(
|
content += "<br>\n".join(map(
|
||||||
lambda kv: "{0} – {1}".format(kv[0], "; ".join(kv[1])),
|
lambda kv: "{0} – {1}".format(kv[0], "; ".join(sorted(kv[1]))),
|
||||||
sorted(cited_count.items(), reverse=True)[:3]))
|
sorted(cited_count.items(), reverse=True)[:3]))
|
||||||
content += "</p>\n"
|
content += "</p>\n"
|
||||||
content += "</div>\n"
|
content += "</div>\n"
|
||||||
|
|
Loading…
Reference in New Issue