Skip to content

Commit

Permalink
Fix task title sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
diegogangl committed Feb 1, 2024
1 parent 0133500 commit c81f472
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GTG/core/sorters.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ def do_compare(self, a, b) -> Gtk.Ordering:
a = unwrap(a, Task)
b = unwrap(b, Task)

first = a.title[-1]
second = b.title[-1]
first = a.title[0]
second = b.title[0]

if first > second:
return Gtk.Ordering.LARGER
Expand Down

0 comments on commit c81f472

Please sign in to comment.