correct sorting in dashboard

This commit is contained in:
Sam 2018-05-11 16:32:12 +10:00
parent e92f9568a4
commit 4f508b2358
1 changed files with 1 additions and 1 deletions

View File

@ -323,7 +323,7 @@ class Report
def self.report_users_by_trust_level(report)
report.data = []
User.real.group('trust_level').count.each do |level, count|
User.real.group('trust_level').count.sort.each do |level, count|
report.data << { x: level.to_i, y: count }
end
end