mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 13:38:18 -08:00
Feat: make sure subcategories are sorted in subcategory id order for harvey ball graphs
This commit is contained in:
parent
f07d785985
commit
16b896d4eb
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ class CategoryPresenter
|
|||
end
|
||||
|
||||
def harvey_scorecard_presenters(school:, academic_year:)
|
||||
@category.subcategories.map do |subcategory|
|
||||
@category.subcategories.sort_by(&:subcategory_id).map do |subcategory|
|
||||
measures = subcategory.measures
|
||||
zones = Zones.new(
|
||||
watch_low_benchmark: measures.map(&:watch_low_benchmark).average,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue