aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/calendar.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/calendar.c')
-rw-r--r--calendar/calendar.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/calendar/calendar.c b/calendar/calendar.c
index bacd7c9291..963f91be06 100644
--- a/calendar/calendar.c
+++ b/calendar/calendar.c
@@ -201,6 +201,11 @@ calendar_get_objects_in_range (GList *objects, time_t start, time_t end, GCompar
}
}
+ /* Put the list in increasing order if no sort function was specified */
+
+ if (!sort_func)
+ new_events = g_list_reverse (new_events);
+
return new_events;
}