Fix another order session date bug

parent 3b77b6ad
Pipeline #425 passed with stage
in 1 minute and 27 seconds
......@@ -44,9 +44,8 @@ module Jekyll
def get_course_editions(site, slug)
editions = site.data["courses"].values
editions = editions.select { |obj| obj["course"] == slug }
editions.sort_by { |obj| obj["date"] }
editions = editions.map { |obj| parse_edition_data(obj) }
editions
editions.sort! { |a,b| a["date"] <=> b["date"] }
editions.map { |obj| parse_edition_data(obj) }
end
def make_past_editions_page(site, dir, course, editions)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment