mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-10 16:00:33 -07:00
Refactor variance chart to make view responsible for sorting measures
This commit is contained in:
parent
f5e5abc27e
commit
ad7dd85524
9 changed files with 58 additions and 62 deletions
|
|
@ -1,4 +1,4 @@
|
|||
class MeasureGraphRowPresenter
|
||||
class VarianceChartRowPresenter
|
||||
include Comparable
|
||||
|
||||
attr_reader :score
|
||||
|
|
@ -49,7 +49,7 @@ class MeasureGraphRowPresenter
|
|||
end
|
||||
|
||||
def <=>(other_presenter)
|
||||
order <=> other_presenter.order
|
||||
other_presenter.order <=> order
|
||||
end
|
||||
|
||||
private
|
||||
Loading…
Add table
Add a link
Reference in a new issue