Verified Commit 64b2c2d0 authored by Roberto Bochet's avatar Roberto Bochet
Browse files

Fix another date order bug

parent 3b77b6ad
Loading
Loading
Loading
Loading
Loading
+2 −3
Changes for _plugins/courses_pages_generator.rb: 2 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -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)