       totals = aggregate.get "totals"
       biggestTotal = Math.max(biggestTotal, if (totals.actual > 0) then totals.actual else totals.estimated)
     , 0
-      
+
   aggregateWeek: (week) ->
     aggregate = @findOrCreateRelevantAggregate week.pick(['cweek', 'year'])
     aggregate.update week.pick(['proposed', 'estimated_hours', 'actual_hours'])
 
     @
-    
+
   findOrCreateRelevantAggregate: (week) ->
     aggregate = @detect (a) -> _.all ['cweek', 'year'],
       (attr) -> a.get(attr) is week[attr]

        proposed: false
        actual_hours: 0
        estimated_hours: 0
      
      @add aggregate

    aggregate

  comparator: (first, second) ->
    firstYear = first.get('year')
    secondYear = second.get('year')

    if firstYear == secondYear
      if first.get('cweek') < second.get('cweek') then -1 else 1
    else
