search/hit-event: Fix compare function

The current compare function puts events closer to today at the end
of the list, instead of the beginning. Revert that.
This commit is contained in:
Georges Basile Stavracas Neto
2023-04-22 10:22:57 +00:00
parent 8170ee0455
commit d7b2a7d88c
+1 -1
View File
@@ -119,7 +119,7 @@ gcal_search_hit_event_compare (GcalSearchHit *a,
event_b = GCAL_SEARCH_HIT_EVENT (b)->event;
now_utc = time (NULL);
result = -gcal_event_compare_with_current (event_a, event_b, now_utc);
result = gcal_event_compare_with_current (event_a, event_b, now_utc);
if (result != 0)
return result;