diff --git a/app/views/stash_engine/curation_stats/index.csv.erb b/app/views/stash_engine/curation_stats/index.csv.erb index 2deed658c9..6403168508 100644 --- a/app/views/stash_engine/curation_stats/index.csv.erb +++ b/app/views/stash_engine/curation_stats/index.csv.erb @@ -1,5 +1,5 @@ <%= "Date,Curated,QueueSize,New,NewToSubmitted,NewToPPR,PPRToSubmitted,CurationToAAR,CurationToPublished,Embargoed,Withdrawn,AuthorRevised,AuthorVersioned" %> -<% @all_stats.each do |stat| +<% @all_stats.order(:date).each do |stat| row = [ formatted_date(stat.date), stat.datasets_curated,