diff options
Diffstat (limited to 'calendar/gui/calendar.c')
-rw-r--r-- | calendar/gui/calendar.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/calendar/gui/calendar.c b/calendar/gui/calendar.c index bacd7c9291..963f91be06 100644 --- a/calendar/gui/calendar.c +++ b/calendar/gui/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; } |