diff --git a/statsgen.py b/statsgen.py index da43f18..fb2001f 100644 --- a/statsgen.py +++ b/statsgen.py @@ -572,6 +572,7 @@ def yeargen(local=False): newfic["words"] += fic["words"] if ficlogged == False: monthcombine.append(fic) + monthcombine = sorted(monthcombine,key=lambda d: d["date"]) jan = {"fics":[],"words":0} feb = {"fics":[],"words":0} mar = {"fics":[],"words":0}