fix order of events

This commit is contained in:
Lorin Werthen 2017-10-12 09:08:08 +02:00
parent b19070cfd2
commit 360d2ce4f2
No known key found for this signature in database
GPG key ID: F11FFC921E0E08E0

View file

@ -22,7 +22,7 @@ module EventsHelper
end
def academic_years_event_items
items.find_all('/events/*').map { |e| [e[:academic_year], e] }.sort_by(&:first)
items.find_all('/events/*').map { |e| [e[:academic_year], e] }.sort_by(&:first).reverse
end
def grouped_events