mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Docstring for Journal.sort
This commit is contained in:
parent
fe51f33981
commit
48b05f9f02
1 changed files with 1 additions and 0 deletions
1
jrnl.py
1
jrnl.py
|
@ -109,6 +109,7 @@ class Journal:
|
||||||
journal_file.close()
|
journal_file.close()
|
||||||
|
|
||||||
def sort(self):
|
def sort(self):
|
||||||
|
"""Sorts the Journal's entries by date"""
|
||||||
self.entries = sorted(self.entries, key=lambda entry: entry.date)
|
self.entries = sorted(self.entries, key=lambda entry: entry.date)
|
||||||
|
|
||||||
def limit(self, n=None):
|
def limit(self, n=None):
|
||||||
|
|
Loading…
Add table
Reference in a new issue