correct sorting in dashboard
This commit is contained in:
parent
e92f9568a4
commit
4f508b2358
|
@ -323,7 +323,7 @@ class Report
|
||||||
|
|
||||||
def self.report_users_by_trust_level(report)
|
def self.report_users_by_trust_level(report)
|
||||||
report.data = []
|
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 }
|
report.data << { x: level.to_i, y: count }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue