Refactor variance chart to make view responsible for sorting measures

This commit is contained in:
Liam Morley 2021-10-28 12:05:41 -04:00
parent f5e5abc27e
commit ad7dd85524
9 changed files with 58 additions and 62 deletions

View file

@ -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