diff --git a/app/assets/javascripts/admin/models/report.js b/app/assets/javascripts/admin/models/report.js index 757fe6f80..76ddf066a 100644 --- a/app/assets/javascripts/admin/models/report.js +++ b/app/assets/javascripts/admin/models/report.js @@ -131,6 +131,10 @@ Discourse.Report = Discourse.Model.extend({ thirtyDayCountTitle: function() { return this.changeTitle( this.sumDays(1,30), this.get('prev30Days'), 'in the previous 30 day period'); + }.property('data'), + + dataReversed: function() { + return this.get('data').toArray().reverse(); }.property('data') }); diff --git a/app/assets/javascripts/admin/templates/reports.js.handlebars b/app/assets/javascripts/admin/templates/reports.js.handlebars index 2946091cd..29a34395a 100644 --- a/app/assets/javascripts/admin/templates/reports.js.handlebars +++ b/app/assets/javascripts/admin/templates/reports.js.handlebars @@ -15,7 +15,7 @@ {{yaxis}} - {{#each row in data}} + {{#each row in dataReversed}} {{row.x}}