Docstring for Journal.sort

This commit is contained in:
Manuel Ebert 2012-04-05 12:05:50 +02:00
parent fe51f33981
commit 48b05f9f02

View file

@ -109,6 +109,7 @@ class Journal:
journal_file.close()
def sort(self):
"""Sorts the Journal's entries by date"""
self.entries = sorted(self.entries, key=lambda entry: entry.date)
def limit(self, n=None):