File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ local function sort_agenda_items(agenda_items)
15
15
if not a .headline_date .date_only and not b .headline_date .date_only then
16
16
return a .headline_date :is_before (b .headline_date )
17
17
end
18
- if not b .headline_date .date_only then
19
- return false
18
+ if not a .headline_date .date_only then
19
+ return true
20
20
end
21
- return true
21
+ return false
22
22
end
23
23
24
24
if a .is_same_day and not b .is_same_day then
@@ -37,10 +37,6 @@ local function sort_agenda_items(agenda_items)
37
37
return a .headline :get_priority_sort_value () > b .headline :get_priority_sort_value ()
38
38
end
39
39
40
- if a .headline :has_priority () and b .headline :has_priority () then
41
- return a .headline_date :is_before (b .headline_date )
42
- end
43
-
44
40
return a .headline_date :is_before (b .headline_date )
45
41
end )
46
42
return agenda_items
You can’t perform that action at this time.
0 commit comments