diff --git a/app/services/google_calendar.rb b/app/services/google_calendar.rb index 1c9be13..b3b3ddb 100644 --- a/app/services/google_calendar.rb +++ b/app/services/google_calendar.rb @@ -36,7 +36,7 @@ class GoogleCalendar list = result end } - @events = (list) ? list.items : nil + @events = (list) ? list.items.sort_by { |event| event.start.date_time } : nil end def nsltv_regex