This commit is contained in:
Stavros Korokithakis
2023-07-19 02:27:35 +03:00
parent c9b49398e4
commit 4645cf1d36
2 changed files with 15 additions and 15 deletions

View File

@@ -58,8 +58,8 @@ class Folder:
def __lt__(self, other: Union["Folder", "Note"]) -> bool:
"""Support comparison, for sorting."""
if isinstance(other, Note):
# Folders always come before notes.
return True
# Folders always come after notes.
return False
return self.title.lower() < other.title.lower()
def __repr__(self) -> str: